Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing AcquireJob MessageQueueTokenExpiredError #2837

Merged

Conversation

nikola-jokic
Copy link
Collaborator

No description provided.

@nikola-jokic nikola-jokic requested review from mumoshu, toast-gear and a team as code owners August 25, 2023 15:01
@nikola-jokic nikola-jokic added this to the gha-runner-scale-set-0.5.1 milestone Aug 25, 2023
@@ -634,7 +634,18 @@ func (c *Client) AcquireJobs(ctx context.Context, runnerScaleSetId int, messageQ
}

if resp.StatusCode != http.StatusOK {
return nil, ParseActionsErrorFromResponse(resp)
if resp.StatusCode != http.StatusUnauthorized {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have test for these clients? 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added one ☺️

@nikola-jokic nikola-jokic merged commit 52fc819 into master Aug 25, 2023
@nikola-jokic nikola-jokic deleted the nikola-jokic/fix-acquire-job-token-expired-parsing branch August 25, 2023 18:35
@Link- Link- modified the milestones: gha-runner-scale-set-0.5.1, gha-runner-scale-set-0.6.0 Sep 7, 2023
@Link- Link- added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Sep 7, 2023
@nikola-jokic nikola-jokic restored the nikola-jokic/fix-acquire-job-token-expired-parsing branch September 26, 2023 09:51
@nikola-jokic nikola-jokic deleted the nikola-jokic/fix-acquire-job-token-expired-parsing branch September 26, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants