core
core copied to clipboard
Catch failing jobs
Issue
Jobs that are being executed can failed due to queue timeouts for example. In order to handle the jobs correctly (i.e. set the draft flag for definitions that are waiting for a job to finish) we need to listen for failed jobs. This can be done by registering the Queue::failing method in the application.