Persist workflow variables during background execution. (#6195)
Added a call to save workflow variables in the BackgroundActivityInvoker to ensure that any changes are persisted during background activity execution. This helps maintain consistency and state integrity across workflow invocations.
This commit is contained in:
parent
4a19a77568
commit
d1ee5c77d0
|
|
@ -41,6 +41,7 @@ public class BackgroundActivityInvoker(
|
|||
activityExecutionContext.SetIsBackgroundExecution();
|
||||
await activityInvoker.InvokeAsync(activityExecutionContext);
|
||||
await ResumeWorkflowAsync(activityExecutionContext, scheduledBackgroundActivity);
|
||||
await variablePersistenceManager.SaveVariablesAsync(workflowExecutionContext);
|
||||
}
|
||||
|
||||
private async Task ResumeWorkflowAsync(ActivityExecutionContext activityExecutionContext, ScheduledBackgroundActivity scheduledBackgroundActivity)
|
||||
|
|
|
|||
Loading…
Reference in a new issue