Hey,
we are using the python standalone api to submit jobs to the farm, but it seems that the rez plugin is not triggered, whereas with the submission through deadlinecommand this works…
Is there any way to trigger the event with a standalone api submission too ?
I think I can also replicate the logic from the rez event and set the job extra info on my own…
But getting the event to work would be better.
Cheers
The issue you’re having is that Rez is an OnJobSubmitted event, which is run by the application that’s triggering job creation. Which in this case is the web service, as the standalone API is just sending over the data it’ll use to create the job.
And the Rez event plugin inspects the environment where ever it’s being run to populate the job extra info data. I assume the web service machine doesn’t have anything when 'rez-context --tools'
is run.
I think in this case you are best off re-creating or cloning the Rez event’s logic. As the alternative would be installing the Deadline client on the machines submitting the jobs.
Thanks Justin for the fast clarification. I already thought that it must be sth like this.
We will reimplement the event plugin logic in our standalone submission class, so it will do the same thing.
1 Like