File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/ModularPipelines/Engine/Executors Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System . Diagnostics ;
2
2
using Microsoft . Extensions . Logging ;
3
+ using ModularPipelines . Exceptions ;
3
4
using ModularPipelines . Helpers ;
4
5
using ModularPipelines . Logging ;
5
6
using ModularPipelines . Models ;
@@ -50,9 +51,10 @@ public async Task<PipelineSummary> ExecuteAsync(CancellationToken cancellationTo
50
51
{
51
52
return await ExecuteInternal ( cancellationToken ) ;
52
53
}
53
- catch
54
+ catch ( Exception exception ) when ( exception is PipelineCancelledException or TaskCanceledException or OperationCanceledException )
54
55
{
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 ) ;
56
58
throw ;
57
59
}
58
60
finally
You can’t perform that action at this time.
0 commit comments