Jobs.enableWithServiceResponseAsync 方法

定义

重载

enableWithServiceResponseAsync(String jobId)

Enables the specified job, allowing new tasks to run. When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 180 days. Therefore, if you enable a job containing active tasks which were added more than 180 days ago, those tasks will not run.

enableWithServiceResponseAsync(String jobId, JobEnableOptions jobEnableOptions)

Enables the specified job, allowing new tasks to run. When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 180 days. Therefore, if you enable a job containing active tasks which were added more than 180 days ago, those tasks will not run.

enableWithServiceResponseAsync(String jobId)

Enables the specified job, allowing new tasks to run. When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 180 days. Therefore, if you enable a job containing active tasks which were added more than 180 days ago, those tasks will not run.

public Observable<ServiceResponseWithHeaders<Void, JobEnableHeaders>> enableWithServiceResponseAsync(String jobId)

参数

jobId
String

The ID of the job to enable.

返回

Observable<ServiceResponseWithHeaders<Void, JobEnableHeaders>>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

enableWithServiceResponseAsync(String jobId, JobEnableOptions jobEnableOptions)

Enables the specified job, allowing new tasks to run. When you call this API, the Batch service sets a disabled job to the enabling state. After the this operation is completed, the job moves to the active state, and scheduling of new tasks under the job resumes. The Batch service does not allow a task to remain in the active state for more than 180 days. Therefore, if you enable a job containing active tasks which were added more than 180 days ago, those tasks will not run.

public Observable<ServiceResponseWithHeaders<Void, JobEnableHeaders>> enableWithServiceResponseAsync(String jobId, JobEnableOptions jobEnableOptions)

参数

jobId
String

The ID of the job to enable.

jobEnableOptions
JobEnableOptions

Additional parameters for the operation

返回

Observable<ServiceResponseWithHeaders<Void, JobEnableHeaders>>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

适用于