Skip to content

Commit

Permalink
feat: #tno-2264 - updated ingestmanager to allow restart after pre-se…
Browse files Browse the repository at this point in the history
…t delay

- added logging for failure count and retryLimit
- wake the service up after a sleep
  • Loading branch information
kylgarmor committed Feb 7, 2024
1 parent d7812af commit 806aa4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/net/services/Managers/IngestManager`.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ public override async Task RunAsync()
// It could also result in a longer than planned delay if the action manager is awaited (currently it is).
this.Logger.LogDebug("Service sleeping for {delay:n0} ms", delay);
await Task.Delay(delay);

// after the service has slept after a number of failures it needs to be woken up
this.State.Resume();

await RefreshIngestsAsync();
}
Expand Down

0 comments on commit 806aa4d

Please sign in to comment.