Hello, I have a question:
We have a script that pulls out farm load statistics off farm using pulse server, that data will be saved into text file and then analyzed my other utility I have, the problem that I have is that in order to execute python script to capture farm load data I need to manually launch python script each time.
Is there a way to make a utility (or a recurring python job, or a plugin, or anything) that will do that automatically every 5 minutes or so?
Thanks in advance.
Hello,
We don’t have anything built into Deadline for timed script scheduling, so you might want to look at scheduling, either a cron job or using task scheduler in windows to run the script at a set interval.
Hello,
I was actually wrong on this, as in Deadline 7.1, which is in late beta stages, we will have both OnHouseCleaning and OnRepositoryRepair events that can trigger an event plugin, and the house cleaning interval can be altered in the repository options’ House Cleaning section to run at the interval you want. If you would like to try out Deadline 7.1, the beta is still open and you can just email beta@thinkboxsoftware.com for access.
Thanks for the info, we already have 7.1 beta, I will start poking around.
Thanks again @dwallbridge for info, I played around a bit with event scripts and figured it out, I see that there is a “house cleaning” setting in both 7.0 release and 7.1 beta, but in both versions I was not able to trigger event plugin by executing “house cleaning” command fom the menu or by waiting it to be executed on schedule. I used “OnHouseCleaningCallback” callback but no result, is it possible that this callback is not yet full integrated and I just need to wait for 7.1 release?
I did have success tying event plugin to “OnJobSubmittedCallback” callback and now my script executed every time job is submitted but I really wanted to have it executed along with house cleaning callback.
Thanks,
/Alex
Looks like it needs some testing on our side. I’ll report back in a bit.
Got it working in my 7.0.2.3 R Monitor.
Unzip into “[repo]/custom/events” and do a house cleaning in the Monitor. It’ll dump “PYTHON: Howdy!” at the end of the other house cleaning stuff.
HouseCleaning.zip (1.32 KB)
Thank you, I was able to create a script that is tied to house cleaning event and will output data into console and notify user via popup message.