Search the Community
Showing results for tags 'execution unit'.
-
There are occasions when you need to force tasks to run sequentially, and as quickly as possible, ideally immediately one after the other. {EG: Each morning you might want to Verify the previous nights' backups, then initiate a Snapshot Transfer Task to Tape for offsite copy.} The usual compromise is to take a guess at how long each Task will need and then schedule them in time sequence with a gap in between to allow for variation in run time. Whilst this works (provided you at least have an estimate of the run time for each job) it is not very efficient or fast, and very difficult if you have no idea how long a task may take. Try this method to force tasks to run sequentially with each one starting immediately the previous one has finished. The trick is in forcing them all to use the same execution unit. Schedule each job to start a short time, (say 1 minute) after the previous one. This is just to get them in the right order. It doesn't matter how long they may actually take to run. At the bottom left of the Script window for each task is the Execution Unit selector, which defaults to ANY. Set it to the highest numbered Execution unit, (so it won't clash with any other task which will pick the lowest numbered available unit by default) for each of your Sequential Tasks. At the appointed time the first of your sequential tasks will start with the specific Execution unit. 1 minutes later the next one will try to start, but since the execution unit is in use, it cannot, and will be added to the Waiting Queue. The rest of your sequential tasks will follow at 1 minute intervals. You should now see them in the Waiting Tab of the Activity Monitor, all waiting, in order, for the Execution unit to become free. As soon as the first task completes, releasing the Execution unit, the next one will start. Your tasks will now execute, sequentially, as quickly as possible. See the User Guide, Chapter 7, Controlling Operations > Multiple Concurrent Executions > Assigning Execution Units.
- 9 replies
-
- 2
-
-
- task
- sequential
-
(and 2 more)
Tagged with: