Clean up of schedule jobs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I was given a task of cleaning up unnecessary scheduled jobs and write a report if we don't need any of the scheduled jobs. I found this record in our scheduled jobs list. Not sure which one this is related to or what it does can any one help? please refer screenshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
55m ago
Hi @_Manu
This record is automatically generated by the Flow Designer engine whenever a Flow or Subflow is set to run on a time-based trigger (e.g., Daily, Weekly, or Repeat interval).
The script line sn_flow_trigger.FlowTriggerAPI.fireTimerTrigger('...') is passing a sys_id as a parameter to trigger the execution of that specific Flow.
To find the name of the flow may you use this code:
var gr = new GlideRecord('sys_hub_flow');
gr.addQuery('sys_id', 'SYS_ID');
gr.query();
if (gr.next()) {
gs.info(gr.name);
}
This helps other users find accurate and useful information more easily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
48m ago
Hi @_Manu
In ServiceNow, sn_flow_trigger.FlowTriggerAPI.fireTimerTrigger is the backend method called by system scheduled jobs (sys_trigger) to run time-based Flow Designer triggers.
This KB would be helpful on same context: KB1744875 Fix scheduled flows that do not run at configured trigger times
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti