JobSpecification.withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete) 方法

定义

Set note that if a job contains no tasks, then all tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the job properties to set onAllTasksComplete to terminatejob once you have finished adding tasks. The default is noaction. Possible values include: 'noAction', 'terminateJob'.

public JobSpecification withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)

参数

onAllTasksComplete
OnAllTasksComplete

the onAllTasksComplete value to set

返回

the JobSpecification object itself.

适用于