Export environment variable list from job?

I’m trying to trouble shoot a Deadline render issue in our beta pipeline and I’m pretty sure that the issue is an environment variable one - but we have a lot of them.

Is there a way to export a text document of the environment variables for a job? That way I can compare against the working job to see if there’s a culprit.

Thanks!

The most straightforward way is to modify the plugin you are rendering from. You just add a print(os.environ) (or pprint.pprint(os.environ) for pretty printing), somewhere in the plugin, and run it again. We have done it on a number of occasions.

You could also write a script that uses RepositoryUtils.GetJob(jobid), job.GetEnvironmentKeys() and job.GetEnvironmentKeyValue(). Then you have to run it like so:

deadlinecommand -ExecuteScript env_check_script.py

I don’t know if the latter shows the “effective” environment, since things such as JobPreLoad hooks may modify it.

Thanks for the tips.