-
Do the EnvironmentKeyValue gets applied automatically? Do I need anything in jobPreload to apply it?
-
If it gets applied automatically, does it happen before or after jobPreload? If I am setting the same environment key in jobPreload, will it over ride the EnvironmentKeyValue?
Short answer: Yes automatically, jobPreload should apply it beforehand.
For more details, those settings take effect exactly at the point MonitoredManagedProcess
starts an executable. The JobPreLoad should have access to the instance of the DeadlinePlugin
which we use when starting the process. There are code examples here doing exactly that.
Thank you eamsler.
Is there any indication in Maya Batch log that tell us where the MonitoredManagedProcess
starts?
Not perfectly, but this should be the output in the render log:
2015-11-02 14:40:20: 1: INFO: Process Priority: BelowNormal
2015-11-02 14:40:20: 1: INFO: Process Affinity: default
2015-11-02 14:40:20: 1: INFO: Process is now running
Also, given that it’s MayaBatch, changing the environment between tasks isn’t going to work out because Maya won’t be re-opened assuming the task is not throwing an error. You’re running with JobPreload so that shouldn’t be an issue here though.