I have one 'master' job setup and scheduled, which runs 3 separate jobs in order
Step 1: Integrity Checks
Step 2; Index Optimisations
Step 3: Database Full Backups
I have noticed that Steps 2 will start to run whilst Step 1 is still completing and likewise Step 3 will run whilst Step 2 is still completing. Obviously I do not wish Full backups to run, whilst index optimisations are running and so forth.
Since, it is good practice to run these steps in order and not wishing to have 3 separate schedules (trying to keep these to a minimum for husbandry purposes) I would have thought that this 'Master' job would have ran fine, but it doesn't.
I have also tried using the WAITFOR DELAY but this really is an unknown amount of time, since optimisations may take 5 mins or 2 hours and the time window to carry this out is low 20:00 - 22:30 approx and varies on what server this runs on.
Any suggestions to have one job, to run three separate jobs, in order and ONLY when the previous step has finished completing?
I have 'On Success - Go to Next Step', already applied.
Thanks