Allow chaining to ONCE-type schedules
Use case: we have quite long chains of job schedules. Sometimes I would like to execute only parts of the long chains without my attention.
My idea to implement this was to write a procedure that takes the job names and creates an ad-hoc schedule which chains the defined jobs in the order in which they were given to the procedure and executes this schedule once. Unfortunately I can't do this easily because I can't create a chain based on a ONCE-type schedule.
If there is an alternative way to accomplish this, please let me know.
-
Hi Matthias,
Thanks for the quick reply. My hope was that there could be some built-in mechanism that will remove the ad-hoc connections or schedules after execution because they are really only meant as a one shot thing.
We have some schedules which are connected by jobs instead of the schedules and for these the mechanism that you suggested works fine. However, I have some schedules in mind where I only want to execute some part from the middle and discard the rest (because it creates unnecessary load).
I have also thought about writing a procedure that executes the jobs synchronously but there doesn't seem to be a way to run a job and block until it's finished. I could probably do some polling on this, though.
-
Hi Thomas,
what if you create a list of the jobs in question (manually or dynamically) and then create and additional chain of schedules for the sub-chain in question? You could then chain the very first of these schedules to the job that is the start and then trigger the job. Afterwards you can simply delete the newly created schedules dynamically too.
If this is not to your liking then I will talk to our development. There are a few caveats with your approach at the moment, you see? We would need to determine how chained schedules behave if they are tied to a ONCE schedule and this one ran and got removed. We could decide on a ONCE and ONCE_REMOVE sort of schedules but this would affect all systems as we then would have to think about the default schedule type when someone chooses to 'start job' from the context menu.
Please let us know your thoughts. If you want to try my suggestion then we can certainly discuss this further in scope of a support ticket (I would post the final SQL here for everyone to see).
Otherwise, any feedback regarding how you think this could be tackled is highly appreciated.Have a great day!
Please sign in to leave a comment.
Comments
3 comments