Skip to content

Commit c5e768e

Browse files
committed
Tweak timing
1 parent 03e3e50 commit c5e768e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ModularPipelines/Engine/Executors/ExecutionOrchestrator.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Diagnostics;
22
using Microsoft.Extensions.Logging;
3+
using ModularPipelines.Exceptions;
34
using ModularPipelines.Helpers;
45
using ModularPipelines.Logging;
56
using ModularPipelines.Models;
@@ -50,9 +51,10 @@ public async Task<PipelineSummary> ExecuteAsync(CancellationToken cancellationTo
5051
{
5152
return await ExecuteInternal(cancellationToken);
5253
}
53-
catch
54+
catch (Exception exception) when (exception is PipelineCancelledException or TaskCanceledException or OperationCanceledException)
5455
{
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);
5658
throw;
5759
}
5860
finally

0 commit comments

Comments
 (0)