Constraints. with Retention Time(Period retentionTime) 方法
Set the default is 7 days, i.e. the task directory will be retained for 7 days unless the compute node is removed or the job is deleted.
public TaskConstraints withRetentionTime(Period retentionTime)
the retentionTime value to set
the TaskConstraints object itself.