Flow execution is delayed by 1-5 minutes

hanaphouse
Giga Guru

The execution of flows in our instance is a bit slow and this is what happens both on the service portal and flow designer. I was trying to troubleshoot this as this can take from 1-5 minutes.

Has anyone experience this? How was it fixed?

FLOW DESIGNER:

find_real_file.png

SERVICE PORTAL:

find_real_file.png

3 REPLIES 3

Anshu_Anand_
Kilo Sage
Kilo Sage

Is your entire instance slow ?

In my case also it takes around 1-2 minute .

we have on-prem instance so new nodes were added and it resolved the issue .

Maybe in your case many transactions would be running

Hope its helpful

Regards,
Anshu

MrMuhammad
Giga Sage

Hi @hanaphouse 

Can you check in Flow trigger under Advance options if flow is set to run in background? If it's running in the background then that's expected behavior and we are allowing this to happen as its executing asynchronously. 

Hint: Where to run the flow = Run flow in background (default)

If you want your flow to execute right away then change the value to Run flow in foreground.

Regards,

Muhammad

Regards,
Muhammad

Mahendra RC
Mega Sage

Hello Hanaphouse,

This happens mostly when there are lot of events created in your instance in sysevent table. If you group by state on this table and check once how many events are in queue. If you have say 9K or 10K event in equeue then your flow will take more time to execute because ServiceNow need some time to process those events.

Please refer the below articles for more details on this:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0868994

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0819167

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0868994

Please mark my respsone as helpful/correct, if it answer your question.

Thanks