We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e3e50 commit c5e768eCopy full SHA for c5e768e
src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs
@@ -1,5 +1,6 @@
1
using System.Diagnostics;
2
using Microsoft.Extensions.Logging;
3
+using ModularPipelines.Exceptions;
4
using ModularPipelines.Helpers;
5
using ModularPipelines.Logging;
6
using ModularPipelines.Models;
@@ -50,9 +51,10 @@ public async Task<PipelineSummary> ExecuteAsync(CancellationToken cancellationTo
50
51
{
52
return await ExecuteInternal(cancellationToken);
53
}
- catch
54
+ catch (Exception exception) when (exception is PipelineCancelledException or TaskCanceledException or OperationCanceledException)
55
- await Task.Delay(TimeSpan.FromSeconds(1), CancellationToken.None);
56
+ // Let original exception bubble up first
57
+ await Task.Delay(TimeSpan.FromSeconds(5), CancellationToken.None);
58
throw;
59
60
finally
0 commit comments