How can I verify scheduled job?

will_smith
Mega Guru

I have a System Definition > Scheduled job of a scheduled script execution that was set to run once. Where can I go to verify that it did indeed run? Is there something in the event registry that will tell me? It was quite basic and I had no gs.print statements in it. I am looking for a way to validate that it did indeed trigger.

Thanks all.

4 REPLIES 4

gemini17
Kilo Guru

Hello Bill:



Watch the video associated with this link.   Hope this is what you are looking for and it is helpful.   ServiceNow KB: Verifying the events process scheduled job is running (KB0524525)


P.S. Please mark it correct as you see the impact.



Kind regards


Danny Raj


The KB article referenced by Danny is a bit old and out-of-date. As a result we have retired it to make sure we can get you all updated information and are working on a new KB article with relevant info.


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi William,



On the "sys_trigger" table there is a field 'Run count' which gets incremented by 1 each time the job is executed. Please check for the same.


will_smith
Mega Guru

Thank you both for that information.



gemini17, I viewed this link and found that this was related to email. My question is about a scheduled job - see below for a screen capture. I am trying to find an event for a scheduled job, not an inbound/outbound email. When I search for "*sched" or "*job" nothing comes up.



pradeepksharma, I saw the sys_trigger table and the run count field in my searching last night and was hopeful this would be the end to my search, however I was unable to find the scheduled job in this trigger table when searching by name.



I think it is because the sys_trigger table is looking at the System Scheduler > Scheduled Jobs instead of the System Definition > Scheduled Jobs. According to Creating a Scheduled Job - ServiceNow Wiki Note: The method described below creates a scheduled job on the Schedule Job [sysauto] table (System Definition > Scheduled Jobs). Create all new scheduled jobs using this method. Some existing scheduled jobs are found on the Schedule Item [sys_trigger] table (System Scheduler > Scheduled Jobs). Do not create new scheduled jobs on the Schedule Item table.



Your continued assistance and patience is appreciated.



find_real_file.png