I’m sending render jobs to deadline from maya using the submitter GUI. I’m looking for a way to add some extra information to jobs right when submitting them (which essentially requires their job Id). Is there a way to run a python script right after submitting these jobs? You know something similar to pre job script, but way sooner :)!
Thanks in advance.
You could write a custom Event which uses the ‘On Job Submit’ callback from the API, you can use this to modify pools/groups/limits/inject env keys etc, instantly on the job.
I do this to automate all sorts of actions on specific job types.
I found a simple example in the Deadline Github that might help you: Deadline/Custom/events/ForcePoolChoice/ForcePoolChoice.py at master · ThinkboxSoftware/Deadline · GitHub