AWS Thinkbox Discussion Forums

prestart script - environment

Wanted to start a discussion on this, do you guys think it would be possible somehow to provide a clean environment to jobs independent of what prestart scripts were run in other jobs?

This would be fairly important

Are you talking about providing a clean environment even to the pre-task scripts? If so, I would definitely be in favor of that…

However, if you’re just talking about to the job plugin itself, you can already do this by setting EnvOnly to True in your job info.

Are you referring to just environment variables, or are you talking about the python environment (loaded modules, etc)?

For environment variables, we recommend using the API functions to set the environment for the render process only. This always ensures you have a clean environment for each job.

For the python environment, this isn’t possible at this time because that would require restarting the entire slave process. One idea we have that we will be investigating for Deadline 7 is to replace the Slave’s render threads with separate Slave Render Processes. This way, we will be able to ensure clean python environments and clean environment variables because these Slave Render Processes can be restarted as necessary.

Yep this is what i mean

Privacy | Site terms | Cookie preferences