Identifying that a job has been preempted

When a job has been preempted, attempts to bind the job fail. PolicyCenter returns a BadInputException similar to the following:

"userMessage": "Cannot take action 'bind-and-issue'. See the details element for further 
information.",
"details": [
  {
    "message": "Branch 7888143943, 12/07/2021, 06/07/2022, 0006260834 has preemptions."
  }
]

You can view information about the preempting job. If you want to bind the current job, you must handle the preemptions.