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

Gadget 1.20 #25

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Gadget 1.20 #25

wants to merge 14 commits into from

Conversation

scott-rc
Copy link

@scott-rc scott-rc commented Feb 13, 2024

This PR shows the diff between our 1.20 fork and main (Fission 1.20.1)

I cherry picked every commit from our 1.19 branch except for:

@angelini
Copy link

This was implemented in Fission 1.20
They use the same timeout (30s)
They only use a new context if the passed in one is already cancelled (we always used a new context)

I think the only worry here is what if the ctx is about to expire (instead of having already expired). If the deadline just has 500ms left, it will fail the first time we try and use it.

Does this code get retried in case of a ctx deadline timeout?

@scott-rc
Copy link
Author

scott-rc commented Feb 14, 2024

This was implemented in Fission 1.20
They use the same timeout (30s)
They only use a new context if the passed in one is already cancelled (we always used a new context)

I think the only worry here is what if the ctx is about to expire (instead of having already expired). If the deadline just has 500ms left, it will fail the first time we try and use it.

Does this code get retried in case of a ctx deadline timeout?

Good point, they don't retry if it fails:

Want me to change this to always use the new context?

EDIT: I made a PR for this here

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.

3 participants