January 5, 2009 at 10:10 am
Hello all,
I've got a weird one. It appears that I have had the SQL Agent just skip running a scheduled job task. No failure no job stuck executing just flat skipped it.
I did ask the mighty google but didn't see anything that resembled the problem.
Has anyone else had an issue with SQL 2005 skipping jobs like this?
Thanks,
Wes
January 5, 2009 at 10:20 am
I've had this once and not figured out why.
Things you might want to check: Job enabled? Job schedule enabled? Job schedule starting time and ending time; windows time service, task scheduler service..
January 5, 2009 at 10:44 am
Yeah,
I walked through all of it and so did someone else just to make sure I didn't miss something.
I hate writing a monitor for all the jobs on all the servers because they may not execute period.
January 5, 2009 at 10:24 pm
Wesley Brown (1/5/2009)
Hello all,I've got a weird one. It appears that I have had the SQL Agent just skip running a scheduled job task. No failure no job stuck executing just flat skipped it.
I did ask the mighty google but didn't see anything that resembled the problem.
Has anyone else had an issue with SQL 2005 skipping jobs like this?
Thanks,
Wes
Please check SQL job owner has a access on that step code or not?
January 6, 2009 at 7:13 am
No not yet.
This job has run successfully except for the one day it skipped. It ran successfully today at its normal time. We can't find any reason for it to have skipped a run, the previous run was successful and in its normal run time.
January 6, 2009 at 7:44 am
I think your sql agent cache is not in sync with msdb database. You can check this by running
xp_sqlagent_notify 'D', null, Null, null, null.
This will dump what is there in the sql memory for jobs. if your job is not listed then it will not run. Propably in that case you need to restart the sql agent.
After running the above query please look into agent error log it would have dumped what is there in sql server agent cache.
January 6, 2009 at 7:58 am
any chance sql agent just wasn't running at the time?
---------------------------------------------------------------------
January 6, 2009 at 8:35 am
The job hasn't be modified since it was installed.
SQL Agent was running the whole time. We get alerts immediately if the agent is down from our nagios box.
We have had problems on other boxes where the job would hang on sending notification but nothing like this.
Cheers,
Wes
January 6, 2009 at 8:50 am
If you right-click on the job in SSMS, and hit view history, does it come back with anything at all?
The Redneck DBA
January 6, 2009 at 9:03 am
There is plenty of job history plus I archive all job history off to another server.
January 6, 2009 at 9:07 am
If it's showing up in the history, then it sounds like it's running.
Perhaps it's immediatly failing, or starting then immediatly stopping?
If you drill down into the details of one of the history rows, you can perhaps get a little information.
I've found you get a lot more information about failures (or just general troubleshooting information) if you specify an output file in the advanced page in the job step properties window.
Might try that and see if you get any useful information about what its doing.
The Redneck DBA
January 6, 2009 at 9:10 am
The job didn't fail it simply didn't execute at all. There is no entry for the time it was suppose to execute in the job history at all.
January 7, 2009 at 6:28 am
What other jobs are running on that server? I had a similar problem a while back and found that another job, scheduled to start 5 minutes before mine, ran long causing the agent to 'skip' my job. I know servers are supposed to be able to multitask, but just for grins and giggles I rescheduled my job for 5 minutes before the other job's scheduled start time. That seemed to work like a charm - never had another 'skip'!
January 7, 2009 at 7:05 am
This server has about 50 jobs on it some run as frequently as every 10 minutes.
Viewing 15 posts - 1 through 15 (of 19 total)
You must be logged in to reply to this topic. Login to reply