Flow designer - Flow exceutions are getting queued everytime whenever record gets updated in bulk.

PVNLP Bhavya
Tera Contributor

HI,

Flow executions are getting queued every time whenever record gets updated in bulk. Can anyone tell me how  can I resolve this issue.

find_real_file.png

4 REPLIES 4

Marcin20
Mega Guru

Hi,

Could you please give me more details, what is the trigger of the flow?

 

Best Regards,

Marcin

 

OlaN
Giga Sage
Giga Sage

Hi,

That is the expected default behaviour of a Flow.

It runs async in the background, and if there are many flows triggered at the same time, they will be queued.

You can change this behaviour by running the Flow in foreground instead.

Below is from the Docs

Run flow in background (default) Flow that runs asynchronously in the background. Use this option for flows that do not require immediate updates and to allow other system processes to run at the same time.
Run flow in foreground Flow that runs synchronously in the current session. Use this option to provide immediate updates to an end user. For example, if a flow opens a task after the previous task closes, use this option to open the next task immediately after a user closes one.
Note: Running a flow in foreground may block the current session thread and prevent user input until the flow finishes. Avoid running flows in the foreground when they contain actions that cannot be interrupted, such as actions that run script. Actions or flow logic that pause a flow will not block a session.

 

Hi,

I have created these flow design to make relationship between CIs as many flows are running at the same time (different relationship for different classes).So if i run this in foreground there will be no impact ??

Yes, it might have impact.

"Note: Running a flow in foreground may block the current session thread and prevent user input until the flow finishes. Avoid running flows in the foreground when they contain actions that cannot be interrupted, such as actions that run script. Actions or flow logic that pause a flow will not block a session."