This commit is contained in:
eric sciple
2024-06-10 21:38:17 -07:00
parent d124b0104e
commit d13cf5d9a8
9 changed files with 127 additions and 16 deletions

View File

@@ -62,7 +62,9 @@ namespace GitHub.Runner.Common
CheckConnection();
return RetryRequest<AgentJobRequestMessage>(
async () => await _runServiceHttpClient.GetJobMessageAsync(requestUri, id, VarUtil.OS, cancellationToken), cancellationToken,
shouldRetry: ex => ex is not TaskOrchestrationJobAlreadyAcquiredException);
shouldRetry: ex => ex is not TaskOrchestrationJobNotFoundException &&
ex is not TaskOrchestrationJobAlreadyAcquiredException &&
ex is not TaskOrchestrationJobUnprocessableException);
}
public Task CompleteJobAsync(