Fix campaign steps
This commit is contained in:
@ -29,6 +29,8 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
{
|
||||
while (state.TryDequeueOperation(out var operation))
|
||||
{
|
||||
state.SetProcessingOperation(operation);
|
||||
|
||||
if (stoppingToken.IsCancellationRequested) return;
|
||||
|
||||
var scope = scopeFactory.CreateScope();
|
||||
@ -49,6 +51,8 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
{
|
||||
await headquartersService.SetOperationMessageGuidAsync(operation.Id, messageGuid);
|
||||
}
|
||||
|
||||
state.UnsetProcessingOperation(operation);
|
||||
}
|
||||
|
||||
await Task.Delay(SLEEP_TIME, stoppingToken);
|
||||
|
||||
Reference in New Issue
Block a user