Handling preemptions

Once a job has been preempted, it can no longer be bound in its current state. This is because the base policy period has been modified by the preempting job, and the preempted job is now missing information present in the base policy period.

PolicyCenter provides the ability to handle preemptions. This is an action you can take on a preempted job to copy over the changes made by the preempting job. Handling a preemption brings a preempted job in line with the new version of the base period. Once you have handled preemptions for a job, you can bind it.

To handle preemptions through Cloud API, use the following endpoint:

  • POST /job/v1/jobs/{jobId}/handle-preemptions

You do not need to provide a request body.

Typically, handling a preemption modifies the contents of a job. Therefore, you need to quote the job prior to binding it, even if you quoted the job prior to the preemption.