Fix campaign steps
This commit is contained in:
@ -42,6 +42,8 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
{
|
||||
while (state.TryDequeueOperation(out var operation))
|
||||
{
|
||||
state.SetProcessingOperation(operation);
|
||||
|
||||
if (stoppingToken.IsCancellationRequested) return;
|
||||
|
||||
entries.Add(new (operation, new WaitState()));
|
||||
@ -86,6 +88,11 @@ namespace Hcs.WebApp.BackgroundServices
|
||||
entry.state.attempt++;
|
||||
entry.state.timer = 0;
|
||||
}
|
||||
|
||||
if (entry.state.done)
|
||||
{
|
||||
state.UnsetProcessingOperation(entry.operation);
|
||||
}
|
||||
}
|
||||
|
||||
entries.RemoveAll(x => x.state.done);
|
||||
|
||||
Reference in New Issue
Block a user