custom action on job fail?

Hi,

We’re in the process of determining how far we can go in automating our pipeline,
and one of the questions that came up is: can we tell deadline to perform an action (like a post-render script),
the moment a job gets marked as Failed?

Cheers!
Dennis

Hi Dennis,

Deadline doesn’t support post-job scripts for failed jobs. There may be a round-about way of performing a task when a job fails, but I’m not sure how viable it would be. You can configure the repository options to have an email sent to an email address whenever a job fails. The email includes the job name and job ID, along with other information. You could write a script that runs as a scheduled task that downloads emails from the account, parses out the information, and performs tasks based on that information.

Cheers,

  • Ryan

Hi Ryan,

One of the things we would like to be able to do is to run a command that
updates the shot status in our in-house shot tracking database (the API is in beta atm).
The pre- and post scripts already take care of setting the status to submitted and rendered,
but we would also like to notify the database of any render failures. This would help us keep the QA
people, or producers, up to date without having to learn how to use the deadline monitor or
having them search for renders that “should be done by now”.

Would anyone besides us be interested in submitting job-fail actions as a feature request?

Cheers!
Dennis

Hi Dennis,

We can definitely log this as a feature request, as it seems like something that others would find useful as well.

Cheers,

  • Ryan