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

Check context after acquiring key #11

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

scott-rc
Copy link

This checks our ctx after acquiring a key from readyPodQueue. If the context is cancelled or about to be cancelled we add the key back and give up.

I arbitrarily chose 1 second as our "to close to being cancelled" limit but I'm open to change that.

@scott-rc scott-rc requested a review from angelini April 14, 2023 20:36
@angelini
Copy link

The change looks good to me, do we want to move this to the 1.19 branch instead?

@scott-rc
Copy link
Author

The change looks good to me, do we want to move this to the 1.19 branch instead?

Yeah, you're right. I'll make the 1.19 branch today and move it 👍

@scott-rc scott-rc force-pushed the sc/check-ctx-after-acquiring-key branch from 83df4f6 to 41f5ca3 Compare April 17, 2023 15:17
@scott-rc scott-rc changed the base branch from gadget_dev_1_18 to gadget_dev_1_19 April 17, 2023 15:17
@scott-rc
Copy link
Author

Rebased on 1.19 branch and bumped min deadline left from 1 second -> 3 seconds

@scott-rc scott-rc merged commit e41640b into gadget_dev_1_19 Apr 17, 2023
@scott-rc scott-rc deleted the sc/check-ctx-after-acquiring-key branch April 20, 2023 21:03
scott-rc added a commit that referenced this pull request May 16, 2023
…uiring-key"

This reverts commit e41640b, reversing
changes made to 484a6b6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants