Fix workflow execution context flag after activity execution
Previously, the `WorkflowExecutionContext.IsExecuting` flag was incorrectly set to `true` after an activity executed, causing potential logic inconsistencies. This change ensures the flag is correctly set to `false`, maintaining the expected workflow state.
This commit is contained in:
parent
dd92fa097c
commit
83744f1f17
|
|
@ -90,7 +90,7 @@ public class DefaultActivityInvokerMiddleware(ActivityMiddlewareDelegate next, I
|
|||
|
||||
// Mark activity as executed.
|
||||
context.IsExecuting = false;
|
||||
context.WorkflowExecutionContext.IsExecuting = true;
|
||||
context.WorkflowExecutionContext.IsExecuting = false;
|
||||
|
||||
// Conditionally commit the workflow state.
|
||||
if (ShouldCommit(context, ActivityLifetimeEvent.ActivityExecuted))
|
||||
|
|
|
|||
Loading…
Reference in a new issue