Skip to content

Commit fa4f738

Browse files
committed
Prevent information loss on host shutdown
Do not pass global CancellationToken to persistence operations on host shutdown. This way it is ensured that persistence operations are not cancelled.
1 parent 2fd4624 commit fa4f738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkflowCore/Services/BackgroundTasks/WorkflowConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected override async Task ProcessItem(string itemId, CancellationToken cance
5555
finally
5656
{
5757
WorkflowActivity.Enrich(result);
58-
await _persistenceStore.PersistWorkflow(workflow, result?.Subscriptions, cancellationToken);
58+
await _persistenceStore.PersistWorkflow(workflow, result?.Subscriptions);
5959
await QueueProvider.QueueWork(itemId, QueueType.Index);
6060
_greylist.Remove($"wf:{itemId}");
6161
}

0 commit comments

Comments
 (0)