- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:51 AM
Hi Abhi,
Please try this.
Go to https://<your instance URL>/syslog_transaction_list.do?sysparm_query=urlLIKE<your scheduled job name> and check the "Transaction processing time" column.
Alternatively, you can also add loggers in the scheduled job to track the time taken as indicated by Aman above. You can also take it to the next level by using Stop Watch API (see below for details).
https://developer.servicenow.com/dev.do#!/reference/api/rome/client/c_StopWatchAPI
Thanks,
Arav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:38 AM
hi,
I would like to know the time taken to complete the job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:44 AM
Check these out
https://community.servicenow.com/community?id=community_question&sys_id=71711f2ddbdcdbc01dcaf3231f961941
https://community.servicenow.com/community?id=community_question&sys_id=3c414fe5db98dbc01dcaf3231f9619ba
https://community.servicenow.com/community?id=community_question&sys_id=5651172ddbdcdbc01dcaf3231f96195d
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 07:45 AM
You can follow below post to check the run time, but officially SN doesn't maintain the time, so it has to be logged in the scheduled job.
Where to find Job Log for a Scheduled Job that Ran?
Many people tracks the time when the job start running, you can also follow below format to check.
Keep 1st line of code in scheduled job as:
gs.info("execution starts for the job @ " + new GlideDateTime());
and last line as :
gs.info("execution ends for the job @ " + new GlideDateTime());
Aman Kumar
