Skip to content

Commit

Permalink
Handle TaskCanceledException (#182)
Browse files Browse the repository at this point in the history
Handle task canceled exception
  • Loading branch information
boma96 authored Apr 3, 2024
1 parent 15afbac commit 464f061
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ private async Task RunAsync(CancellationToken cancellationToken)
await _healthService.SetExecutionManagerRunning(cancellationToken);
await _executionManager.StartAsync(cancellationToken);
}
catch (TaskCanceledException)
{
_logger.LogInformation("Stopping ConductorSharp background service");
}
catch (Exception exception)
{
await _healthService.UnsetExecutionManagerRunning();
Expand Down

0 comments on commit 464f061

Please sign in to comment.