Deadline 6 - Monitor Calls External Scripts [SOLVED]

Hello,
I wanted to ask if it’s possible to add a custom script to the Monitor’s Submit or Job Scripts menu, but reference the script outside of the repository. Putting scripts in [Repository]/scripts/Submission or [Repository]/script/Jobs works just fine, but I’d rather keep all custom scripts in one place that’s separate from the repository.

There is the new ‘custom’ folder in the Repository that you can place custom scripts into. I know this is still inside the repository, but at least it’s separate from the scripts that ship with Deadline.

Cheers,

  • Ryan

The custom folder is better, but still not exactly what I was hoping for. Still, thank you for the reply.

Just thought I’d update this with a solution if anyone else wanted to know.
I added the path with all my custom scripts to Python Settings in the Deadline Monitor. For any custom scripts in the Deadline repository, I would then do something like this, making sure the name of my external script is not the same as the script in the repository:

CustomSubmission.py

import CustomSubmissionMain

########################################################################
## Main Function Called By Deadline
########################################################################
def __main__():
    CustomSubmissionMain.Run()

The Run() function replaced the main() function in the original, but everything else pretty much stayed the same.