Workflow Best Practices - Set Timer

AjayPavanG
Tera Contributor

Hi, 

 

looking to know the best practices when working with workflow timers. what is the advisable max time can be used in timer to wait especially for RITM workflow ? Can we set 3-6 months to wait ? is that a good practice that wont impact platform performance or fulfillment of RITMs.

 

what's the max length of time, i can use without impacting performance ?

 

Thanks

7 REPLIES 7

YaswanthKurre
Tera Guru

Hi @AjayPavanG ,

 

Workflow timer activities create scheduled jobs (sys_trigger records) to trigger workflow steps after a specified duration. If the ServiceNow scheduler queue is overloaded or backed up with other scheduled jobs, these workflow timers can be significantly delayed, causing the workflow to appear to "timeout" or not progress as expected, also results in degradation of system performance.

 

Instead of timers, trigger workflows based on events. or use scheduled jobs to run at specified intervals to monitor what you need.

 

Mark this as helpful and correct, if this answers your question.

 

Thanks,

Yaswanth

Ankur Bawiskar
Tera Patron
Tera Patron

@AjayPavanG 

It all depends on your business use-case.

What's your actual requirement?

Waiting for 3-6 months is too long and will lead to performance impact.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  - My requirement is remove access based on end date on the request item. I have to trigger outbound rest call when the end date matches with current.

 

can we set to less than 3 months ? like 1-2 months ?

@AjayPavanG 

best to do this.

Have a daily scheduled job or flow and check if the end date reached or not.

if reached then handle the other logic

check this on how to handle this based on date field, something similar can be done for catalog item variable

I cannot seem to get an Email Notification when a record's due date is reached 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader