I have used a method like this to detect missed jobs during downtime. I do not auto run missed jobs, because sometimes it is not necessary.
https://www.sqlshack.com/detecting-and-alerting-on-sql-server-agent-missed-jobs-2/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Using SSMS 18. I know I can use the Retry Attempts option to retry a job if it fails. What I'm wondering is whether there is a way to retry a job if it hasn't run at all. For example, I had a job scheduled to run a few nights ago but the server was being rebooted at the time the job was scheduled, so it didn't run at all. The scheduled run was skipped. Is there a way to set this up to retry if the scheduled run has been missed?
I have used a method like this to detect missed jobs during downtime. I do not auto run missed jobs, because sometimes it is not necessary.
https://www.sqlshack.com/detecting-and-alerting-on-sql-server-agent-missed-jobs-2/
Hi Josh,
I don't think so that you can schedule/retry like that if the schedule is skipped by any reasons.
As a work around, you may configure another job which runs in some interval to initiate the jobs which was missed schedules.
If this helps please vote and mark as answer.
No, I can say for sure that there is nothing like that built into Agent. You have to roll your own, something like already suggested in other answer.
I have used a method like this to detect missed jobs during downtime. I do not auto run missed jobs, because sometimes it is not necessary.
https://www.sqlshack.com/detecting-and-alerting-on-sql-server-agent-missed-jobs-2/
Thanks, all. Sounds like it may not be worth the effort, as I check the Job Agent first thing every morning anyway, so something that generates an email isn't really going to do much more than that for me. I appreciate the quick responses.