Skip to content

Commit

Permalink
Do not check queue existence for pr- queues (#9176)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Apr 25, 2022
1 parent f188353 commit cbc4d62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Microsoft.DotNet.Helix/JobSender/JobDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ public async Task<ISentJob> SendAsync(Action<string> log, CancellationToken canc
// 404 = this queue does not exist, or did and was removed.
catch (RestApiException ex) when (ex.Response?.Status == 404)
{
throw new ArgumentException($"Helix API does not contain an entry for {queueId}");
// Do not throw for Helix pr- queues which are not in the queue info JSON
if (!queueId.ToLowerInvariant().StartsWith("pr-"))
{
throw new ArgumentException($"Helix API does not contain an entry for {queueId}");
}
}

IBlobContainer storageContainer = await storage.GetContainerAsync(TargetContainerName, queueId, cancellationToken);
Expand Down

0 comments on commit cbc4d62

Please sign in to comment.