batchUpdateJob

Updates multiple jobs in a single request. This is a batch version of the UpdateJob API.

The result of updating each job is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

When you change the status of a job to ARCHIVED, the job can't be scheduled or archived.

An archived job and its steps and tasks are deleted after 120 days. The job can't be recovered.

Samples

// Update multiple jobs in a single request
deadlineClient.batchUpdateJob {
    jobs = listOf<BatchUpdateJobItem>(
        BatchUpdateJobItem {
            farmId = "farm-1234567890abcdef1234567890abcdef"
            queueId = "queue-1234567890abcdef1234567890abcdef"
            jobId = "job-1234567890abcdef1234567890abcdef"
            targetTaskRunStatus = JobTargetTaskRunStatus.fromValue("FAILED")
        },
        BatchUpdateJobItem {
            farmId = "farm-1234567890abcdef1234567890abcdef"
            queueId = "queue-1234567890abcdef1234567890abcdef"
            jobId = "job-234567890abcdef1234567890abcdef1"
            targetTaskRunStatus = JobTargetTaskRunStatus.fromValue("FAILED")
        }            
    )
}