Hi !
I can’t figure out how to get the userName from a selected jobs in the monitors.
I wish to be able to retrieve and print in the console the userName using a python script.
I’m currently able to retrieve without problem jobName, jobID and others … but JobUserName give me a hard time
Can someone point me to a solutions?
Hi,
See attached py script as an example. Just drop the script into “//deadline_repository_path/custom/scripts/Jobs”. Select 1 or more jobs in your queue and right-click, scripts, “JobInfo”.
Look at console for print messages.
Once you have an instance of the job object, its just: “job.JobUserName”
JobInfo.py.zip (338 Bytes)
Hope this helps,
Mike
Thank that make the trick from a class.
Millions thanks.