Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Clean up of schedule jobs

_Manu
Tera Contributor

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. 

IMG_2346.jpeg

 

2 REPLIES 2

Rafael Batistot
Kilo Patron

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);
}

If this response was helpful, please mark it as Helpful and, if applicable, as Correct.
This helps other users find accurate and useful information more easily

Tanushree Maiti
Tera Patron

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 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti