Job Clean up workflow

Hi

Im am looking at adding a “cleanup workflow” for some of our Deadline Plugins which are used to publish assets (i.e. Maya Publish cache asset from Deadline).

Ideally I would like to have a callback within the plugin itself that detects Task (job is also ok) exit (user suspended, cancelled or deleted the job)

Is having an Event the only way to do this (for example a Job Failed Event that is skipped if the job plugin is not within a given list)?

Or is there a way to have this logic within the Plugin itself , so the code is only executed and used for the Plugin where the logic is needed?

Hope this makes sense

Thanks

Jacob

An event plugin would be the best option, you’d just check if the job.Plugin is on the list of plugins you’ve configured.

You could add code to the plugin but an event plugin will be much simpler.