Skip to content

Commit

Permalink
Prevent information loss on host shutdown
Browse files Browse the repository at this point in the history
Do not pass global CancellationToken to persistence operations on host
shutdown. This way it is ensured that persistence operations are not
cancelled.
  • Loading branch information
mamidenn committed Aug 12, 2023
1 parent b4c7b73 commit 645d7f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected override async Task ProcessItem(string itemId, CancellationToken cance
finally
{
WorkflowActivity.Enrich(result);
await _persistenceStore.PersistWorkflow(workflow, result?.Subscriptions, cancellationToken);
await _persistenceStore.PersistWorkflow(workflow, result?.Subscriptions);
await QueueProvider.QueueWork(itemId, QueueType.Index);
_greylist.Remove($"wf:{itemId}");
}
Expand Down

0 comments on commit 645d7f6

Please sign in to comment.