AWS Thinkbox Discussion Forums

psot job scripts dont get env variables of job

It seems that the post job scripts don’t get any of the environment variables that are passed in with the job.
Is that “by design”?

In theory pre/post task/job scripts are just regular tasks of a job, i would expect them to have the same environment as the other tasks in a job.

This is currently “by design” in 7, since all the python scripts get run in Deadline’s execution context. Changing the environment for the Scripts would require changing the environment for the entire Slave.

While this is probably doable, it could have some unintended consequences, or could lead to a clobbered environment if a plugin crashes and doesn’t get to cleanup properly.

In 8, though, we’re running all the Job stuff in a separated Sandbox process, so it should be pretty straightforward (and makes more sense) to implement this change there. I’ll log it in the roadmap :slight_smile:

Cheers,
Jon

Mmm… Sandbox… mmm

Privacy | Site terms | Cookie preferences