How to make a specified Task error instantly fail its related Job, with no retries?

Hey all,

Our Deadline repository is configured with a Task fail limit of 7, and a Job fail limit of 15. We’ve also added some error checks in a custom MayaBatch.py (via AddStdoutHandlerCallback).

For a particular type of Job, we would like it to immediately fail without retrying if it encounters a specific Task error, but if it encounters errors that aren’t the specific one, to retry as per the Repository settings.

Is there a way to achieve this using Deadline?

Cheers,

Hello @dean-sse

I think you may be able to achieve that by calling FailJob() when that line is printed on the STDOUT.

I have not tested it myself though.

1 Like