Guidelines for running Python scripts

Andrew (23 posts)
January 21, 2025 01:19 PM
Accepted Answer

Are there any guidelines for installing Python on the adTempus master server and executing scripts in job steps? I assume it would be a simple program execution task. Am I missing something easier/better? We are compiling executables today and I'd like to moving directly to native scripts.

 

Bill Staff (602 posts)
January 21, 2025 01:45 PM
Accepted Answer

There is not a better way to do this--the adTempus scripting engine doesn't support Python so you can't use a script task. As you say, you would use a program execution task that points to the Python executable, with the script as the command line argument.

By default adTempus will look at the exit code from the Python process to determine success or failure of the task. You can use sys.exit() in your script to set the value that will be returned.