Hey guys. I have a few simple job scripts that do the following:
- Change priority
- Change machine limit
- Send email notification
I noticed that if a user modifies their own job, Deadline does a great job at logging that activity in the job’s history. However, when using the deadline commands, it doesn’t get logged. I was wondering if someone could point me in the right direction for putting this activity into the job history. Here’s an example snippet from one of these simple scripts.
for job in jobs:
job.JobPriority = priority
## Log the above change in the job history
RepositoryUtils.SaveJob(job)
maxHosts = job.JobTaskCount
jobIdentity = job.ID
RepositoryUtils.SetMachineLimitMaximum(jobIdentity , maxHosts)
## Log the above change in the job history