I have been using PBS hooks to get event data at the queujob, runjob and jobobit events and modify some attributes. But my main goal is to somehow override the functionaltiy of the scheduler using the hooks interface.
So for example, if I have a runjob event for some job. My hook script would do some calculations and decide on whether to run the job now or run it later. So the main question is: Can I delay the execution of some job using a hook such that other jobs can skip ahead? Maybe put the job on hold?
As far as I am aware, this is probably not doable using the hooks interface. Would you reccommend using the IFL interface instead? If yes, what is the best way I can experiment with this interface after installing OpenPBS using the binaries for Ubuntu 20.04.
There is no hook interface to the scheduler / scheduling event
So for example, if I have a runjob event for some job. My hook script would do some calculations and decide on whether to run the job now or run it later. So the main question is: Can I delay the execution of some job using a hook such that other jobs can skip ahead? Maybe put the job on hold?
Yes, you can implement it in the queuejob(hold) or ruinjob hook (reject, or introduce some time delay using sleep, query based on the results , accept / reject and put the job back in the queue). Hooks applies to all jobs , unless some conditions are implemented within the hook for specificity .
Not sure whether it can be done via IFL interface, might need to be implemented in the code.