mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
Throw TimeoutException instead of OperationCanceledException on the final retry in DownloadRepositoryAction. (#2895)
This commit is contained in:
@@ -854,6 +854,11 @@ namespace GitHub.Runner.Worker
|
|||||||
Trace.Info("Action download has been cancelled.");
|
Trace.Info("Action download has been cancelled.");
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
catch (OperationCanceledException ex) when (!executionContext.CancellationToken.IsCancellationRequested && retryCount >= 2)
|
||||||
|
{
|
||||||
|
Trace.Info($"Action download final retry timeout after {timeoutSeconds} seconds.");
|
||||||
|
throw new TimeoutException($"Action '{link}' download has timed out. Error: {ex.Message}");
|
||||||
|
}
|
||||||
catch (ActionNotFoundException)
|
catch (ActionNotFoundException)
|
||||||
{
|
{
|
||||||
Trace.Info($"The action at '{link}' does not exist");
|
Trace.Info($"The action at '{link}' does not exist");
|
||||||
|
|||||||
Reference in New Issue
Block a user