-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parallel task works sequentially #1223
Comments
Hi, var taskId = context.PersistenceData;
if(taskId==null){
taskId = StartLongRunningTask();
return ExecutionResult.Sleep( 500, taskId);
}
var status = GetLongRunningTaskStatus(taskId);
switch(status) {
case "OK":
return ExecutionResult.Next( );
case "Running":
return ExecutionResult.Sleep( 500, taskId);
} because next step won't be launched until current step Run method returns. |
I am facing the same issue here, even for the Sample09 the soure code provides works in sequence, have u solved the problem yet? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I need to excute three methods in parallel but the following code excute it in sequential order. Kindly help me to sort the issue.
Also, tried WaitFor & Delay they didn't work as expected. They are waiting for the first branch to finish.
Output
Data1 started at 1/3/2024 15:09:28
Data1 Completed at 1/3/2024 15:09:29
Data2 started at 1/3/2024 15:09:29
Data2 Completed at 1/3/2024 15:09:31
Data2A started at 1/3/2024 15:09:34
Data2A Completed at 1/3/2024 15:09:37
Data3 started at 1/3/2024 15:09:31
Data3 Completed at 1/3/2024 15:09:34
Expected Output
Data1 started at 1/3/2024 15:09:28
Data1 Completed at 1/3/2024 15:09:29
Data2 started at 1/3/2024 15:09:28
Data2 Completed at 1/3/2024 15:09:30
Data2A started at 1/3/2024 15:09:30
Data2A Completed at 1/3/2024 15:09:33
Data3 started at 1/3/2024 15:09:28
Data3 Completed at 1/3/2024 15:09:31
The text was updated successfully, but these errors were encountered: