mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
handle conflict errors from run service (#2570)
* handle conflict errors from run service * nit: formatting * fix formatting
This commit is contained in:
committed by
GitHub
parent
58f3ff55aa
commit
c8c47d4f27
@@ -52,7 +52,8 @@ namespace GitHub.Runner.Common
|
||||
{
|
||||
CheckConnection();
|
||||
return RetryRequest<AgentJobRequestMessage>(
|
||||
async () => await _runServiceHttpClient.GetJobMessageAsync(requestUri, id, cancellationToken), cancellationToken);
|
||||
async () => await _runServiceHttpClient.GetJobMessageAsync(requestUri, id, cancellationToken), cancellationToken,
|
||||
shouldRetry: ex => ex is not TaskOrchestrationJobAlreadyAcquiredException);
|
||||
}
|
||||
|
||||
public Task CompleteJobAsync(Guid planId, Guid jobId, TaskResult result, Dictionary<String, VariableValue> outputs, IList<StepResult> stepResults, CancellationToken cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user