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 11using System . Diagnostics ;
22using Microsoft . Extensions . Logging ;
3+ using ModularPipelines . Exceptions ;
34using ModularPipelines . Helpers ;
45using ModularPipelines . Logging ;
56using 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
You can’t perform that action at this time.
0 commit comments