-
Notifications
You must be signed in to change notification settings - Fork 140
Queue sandbox jobs with client polling to avoid overload timeouts #939
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
Open
i-vainn
wants to merge
24
commits into
main
Choose a base branch
from
imoshkov/sandbox-task-queue
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
17cd382
initial, WIP
i-vainn aa164d8
original design, WIP
i-vainn ab1eea2
stable; soft session deletion
i-vainn 77e9758
hard cancel
i-vainn b504010
removed unused cancel method
i-vainn 8d988c6
client request polling
i-vainn c96b9ea
fixes
7450af7
fixed sticky routing for no-sid reqs
fdb94e2
aligned affinity tests
4ab4917
Merge branch 'main' into imoshkov/sandbox-task-queue
33172e7
added queued_ahead_count method
i-vainn 28bb0d2
evict finished jobs
i-vainn cafbc09
added pid and worker_num logging
i-vainn 8101829
cancel requests on timeout
i-vainn 5f08cd4
reduced request timeouts
i-vainn 5b896bc
reset worker on client time out
i-vainn bf02e02
improved readability, add _request method
i-vainn 739cf2d
Merge branch 'main' into imoshkov/sandbox-task-queue
i-vainn 9f3aa75
increased ipython overhead timeout
e38b334
added get_url methods
a2720d4
increased critical timeouts
dd9a689
Merge branch 'main' into imoshkov/sandbox-task-queue
85b398c
logging status updates
3c4b517
simplified affinity header logic
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A potential issue with keeping this all in memory, is if the worker stops responding or crashes for some reason, all of your state disappears with the worker. Might not be something we need to fix right now, but if we start having issues of workers stopping/crashing, this will be a crux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me if we need something more robust yet, though.