I have an event plugin that listens to
OnJobFailedCallback. The error callback fires whenever a task produces an error, and the failed callback fires if I manually fail a task or fail it through something like
If a job is failed because it has produced overall too many errors (as per repository settings), my
OnJobFailedCallback triggers as expected.
My problem is that I can’t catch a useful event when a job is automatically failed because a task has produced too many errors. Sometimes a task-error like that just leaves the job in a limbo state, but the ones I’m mostly interested in catching are jobs that have a single task plus a post-task.
If this task fails, Deadline knows enough to mark the post-task as failed, and this propagates up to marking the whole job as failed. All that is good, I’m just struggling with catching this event.
OnJobErrorCallback event reports the job as being
Active. Which I suppose makes sense because it takes a moment or two before the job status changes. I also tried refreshing the job object via
RepositoryUtils.GetJob, but no change.