Running Script on a Task failed condition

I’m trying to automate a render processing pipeline (which we use Deadline to manage), however we have an additional management reporting database system. I’ve so far managed to include some Python script to report render completes to the management database using the Post Job Script.

However, any tasks that fail (e.g. due to time limits being applied, Octane renderer crashing) do not cause the Post Script to be run. I’m unable to see any script callbacks for failures (none of the scripting options handle failures PreJobScript, PostJobScript, PreTaskScript, or PostTaskScript), and the error notification only allows for emails to be sent, are there any scripting handlers anywhere?

Thanks for any assistance.

Hey Simon,

Have you looked at Deadline’s Events functions? Here are two that might help you:

OnJobErrorCallback
OnJobFailedCallback

James! You beat me again!

My notes:
I think an event script that collects the information after the job completes may be the better way to go.

The pre/post-job/task API hasn’t changed in a long time. There are however lots of options from the events system:
docs.thinkboxsoftware.com/produc … ugins.html

DeadlineEventListener.OnJobErrorCallback should handle the case where a task goes wrong. I have yet to play with it myself yet though.