Support Article
Spinoff flow does not execute in parallel
SA-104474
Summary
A parent flow is configured with a Spinoff subflow to perform Asynchronous processing. However, the subflow is executed Synchronously instead. The parent flow is waiting for the subflow process to complete, thus impacting the run time.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a parent flow with a Spinoff subflow.
- Add a delay in the database procedure to verify if the process is executed asynchronously.
- Execute the flow.
Root Cause
The Spinoff flow executes immediately because it contains only a Utility shape.
Resolution
As a local-change, use a Queue Processor to execute the activity asynchronously:
In this use case, the case is created as temporary, and a specific page of data is required for the Asynchronous activity. An activity is created to execute the Queue-For-Processing method with a named Step Page.
In the Method parameters, select None for the Lock setting and select the ‘Queue current snapshot of page’ option in the Advanced section.
When the Queue Processor executes, the snapshot of the page is available on the pyQueuePage. The Asynchronous activity is updated to copy pyQueuePage to the named Step Page as that is the page used in the Property-Set steps.
Published August 5, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.