Create a Job.
Reference to the service client.
The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all other tasks that run under this job, by using the Task APIs. In the second approach, the user directly controls the execution of tasks under an active job, by using the Task APIs. Also note: when naming jobs, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
The job to be added.
Promise<Models.JobAddResponse>
The job to be added.
The callback
The job to be added.
The optional parameters
The callback
Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.
The ID of the job to delete.
Promise<Models.JobDeleteResponse>
The ID of the job to delete.
The callback
The ID of the job to delete.
The optional parameters
The callback
The Batch Service immediately moves the job to the disabling state. Batch then uses the disableTasks parameter to determine what to do with the currently running tasks of the job. The job remains in the disabling state until the disable operation is completed and all tasks have been dealt with according to the disableTasks option; the job then moves to the disabled state. No new tasks are started under the job until it moves back to active state. If you try to disable a job that is in any state other than active, disabling, or disabled, the request fails with status code 409.
The ID of the job to disable.
What to do with active tasks associated with the job. Possible values include: 'requeue', 'terminate', 'wait'
Promise<Models.JobDisableResponse>
The ID of the job to disable.
What to do with active tasks associated with the job. Possible values include: 'requeue', 'terminate', 'wait'
The callback
The ID of the job to disable.
What to do with active tasks associated with the job. Possible values include: 'requeue', 'terminate', 'wait'
The optional parameters
The callback
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.
The ID of the job to enable.
Promise<Models.JobEnableResponse>
The ID of the job to enable.
The callback
The ID of the job to enable.
The optional parameters
The callback
The ID of the job.
Promise<Models.JobGetResponse>
The ID of the job.
The callback
The ID of the job.
The optional parameters
The callback
Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
Promise<Models.JobGetAllLifetimeStatisticsResponse>
The callback
The optional parameters
The callback
Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
The ID of the job.
Promise<Models.JobGetTaskCountsResponse>
The ID of the job.
The callback
The ID of the job.
The optional parameters
The callback
Promise<Models.JobListResponse>
The callback
The optional parameters
The callback
The ID of the job schedule from which you want to get a list of jobs.
Promise<Models.JobListFromJobScheduleResponse>
The ID of the job schedule from which you want to get a list of jobs.
The callback
The ID of the job schedule from which you want to get a list of jobs.
The optional parameters
The callback
The NextLink from the previous successful call to List operation.
Promise<Models.JobListFromJobScheduleResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
The NextLink from the previous successful call to List operation.
Promise<Models.JobListResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.
The ID of the job.
Promise<Models.JobListPreparationAndReleaseTaskStatusResponse>
The ID of the job.
The callback
The ID of the job.
The optional parameters
The callback
This API returns the Job Preparation and Job Release task status on all compute nodes that have run the Job Preparation or Job Release task. This includes nodes which have since been removed from the pool. If this API is invoked on a job which has no Job Preparation or Job Release task, the Batch service returns HTTP status code 409 (Conflict) with an error code of JobPreparationTaskNotSpecified.
The NextLink from the previous successful call to List operation.
Promise<Models.JobListPreparationAndReleaseTaskStatusResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints.
The ID of the job whose properties you want to update.
The parameters for the request.
Promise<Models.JobPatchResponse>
The ID of the job whose properties you want to update.
The parameters for the request.
The callback
The ID of the job whose properties you want to update.
The parameters for the request.
The optional parameters
The callback
When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any running tasks associated with the job and runs any required job release tasks. Then the job moves into the completed state. If there are any tasks in the job in the active state, they will remain in the active state. Once a job is terminated, new tasks cannot be added and any remaining active tasks will not be scheduled.
The ID of the job to terminate.
Promise<Models.JobTerminateResponse>
The ID of the job to terminate.
The callback
The ID of the job to terminate.
The optional parameters
The callback
This fully replaces all the updatable properties of the job. For example, if the job has constraints associated with it and if constraints is not specified with this request, then the Batch service will remove the existing constraints.
The ID of the job whose properties you want to update.
The parameters for the request.
Promise<Models.JobUpdateResponse>
The ID of the job whose properties you want to update.
The parameters for the request.
The callback
The ID of the job whose properties you want to update.
The parameters for the request.
The optional parameters
The callback
Generated using TypeDoc
Class representing a Job.