How to get the start time and end time of a scheduled job

amaradiswamy
Kilo Sage

Hi All,

As per our requirement, we need to run three scheduled jobs in an order. for now, we have estimated the time and kept timers in workflow for that particular time. Is there any way to know the time in which a scheduled job started and ended, so that i can kept that condition and then that process will be fine. Please provide your suggestions.

Thanks & Regards,

Swamy

8 REPLIES 8

The SN Nerd
Giga Sage
Giga Sage

If they are running scripts, you may need to merge them into one, executed in the desired order.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

One way of checking this is: System Logs -> Transactions (Background).



In that module all jobs are recorded for how long they run (a record is only inserted there if the job really finished). Based on that you can see when the job started.



Regards,


Sergiu


Hi Sergiu,



Thank you so much for your reply.



But how can i kept a condition in the workflow to start a next scheduled job after the first scheduled job finished.



Regards,


Swamy


I think you would need your first scheduled job to fire an event after it completes to trigger the next scheduled job. I can't think of any other way to do it and ensure order.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022