Hello.
I think you need to add:
from Deadline.Scripting import RepositoryUtils
Scripting reference is here (and search for “SetPostJobScript
” its parameters are: job, script
and “SaveJob(job)
”)
https://docs.thinkboxsoftware.com/products/deadline/10.3/2_Scripting%20Reference/class_deadline_1_1_scripting_1_1_repository_utils.html
This older post is still relevant to what you want to accomplish:
Can probably add a self.LogInfo(“Job saved with post-job script.”) so it will be logged.
There are way better coders/pipeline devs on this forum (I’m a sysadmin) , so hopefully one of them will chime in.