mirror of
https://github.com/actions/runner.git
synced 2025-12-13 09:01:20 +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
@@ -86,6 +86,8 @@ namespace GitHub.Actions.RunService.WebApi
|
||||
{
|
||||
case HttpStatusCode.NotFound:
|
||||
throw new TaskOrchestrationJobNotFoundException($"Job message not found: {messageId}");
|
||||
case HttpStatusCode.Conflict:
|
||||
throw new TaskOrchestrationJobAlreadyAcquiredException($"Job message already acquired: {messageId}");
|
||||
default:
|
||||
throw new Exception($"Failed to get job message: {result.Error}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user