-
Notifications
You must be signed in to change notification settings - Fork 686
background goroutine get job info #4160
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
Merged
rueian
merged 60 commits into
ray-project:master
from
fscnick:feat/background-goroutine-get-job-info
Jan 11, 2026
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
805369a
[RayJob] background job info poc
fscnick 73b14b5
[RayJob] add implement some methods
fscnick 4ce2381
[RayJob] encapsulate the worker pool
fscnick e184e5c
[RayJob] replace concurrency map with lru cache
fscnick 859f6a1
[RayJob] remove cache on stop and config flag
fscnick 03ce0e9
[RayJob] expiry cache cleanup goroutine
fscnick ac275c2
[RayJob] code and comment minor fix
fscnick 0923ef5
[RayJob] task check contain or not befor add
fscnick 9f87da6
[RayJob] remove delete cache from deleteClusterResources and add lock…
fscnick 97ab407
[Helm] add argument for useBackgroundGoroutine
fscnick 929a829
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick a2a0961
[RayJob] repeated error did not update
fscnick d2173bb
[RayJob] remove unused function and background goroutine observability
fscnick 50c9b94
[RayJob] cache client support graceful shutdown
fscnick 0bfd41e
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick 1ab70fa
[RayJob] rename useBackgroundGoroutine to asyncJobInfoQuery
fscnick efb7d17
[RayJob] use ray job info in logger
fscnick 9e71883
[RayJob] remove cacheStorage nil check
fscnick 82085c0
[RayJob] bg goroutine uses operator context instead
fscnick bdb62b2
[RayJob] bg goroutine handle task queue full
fscnick 75345e6
[RayJob] correct the comment
fscnick 5d471c4
[RayJob] refactor initialize dashboard client for background goroutine
fscnick 745e7a6
[RayJob] worker handle ctx.Done correctly
fscnick 3172fbe
[RayJob] remove unnecessary putting task into queue
fscnick c3363c3
[RayJob] if queue is full, retry again
fscnick e114330
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick 1fd0268
[RayJob] make cache immutable to avoid data race
fscnick dd6e750
[RayJob] remove unused function
fscnick 6ec8372
[RayJob] remove cacheStorage lock
fscnick cf62d4d
[RayJob] update cache error
fscnick 94729a6
[RayJob] If error on fetching job info, it removes from loop
fscnick 88e6702
[RayJob] task queue is extendable
fscnick 0d5dfe8
[RayJob] change slice to ring buffer
fscnick 10ef540
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick 03bc5b1
[RayJob] rename PutTask to AddTask
fscnick 11db5a3
[RayJob] extendable channel use open source library
fscnick d2e13db
[RayJob] async job info query use feature gate instead
fscnick 1f90762
[RayJob] add comment for task
fscnick 12b6c40
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick 2765c2a
[RayJob] rename function signature of worker pool init function
fscnick c3336f2
[RayJob] change ErrAgain error message
fscnick b7f649a
Merge remote-tracking branch 'upstream/master' into feat/background-g…
fscnick 09b501c
[RayJob] fix lint error
fscnick 5d5bbde
[RayJob] change back to EAGAIN
fscnick 8475d1f
[RayJob] remove queue size from todo comment
fscnick a52f2a9
[RayJob] rename queue full error
fscnick 4d4ed19
[RayJob] add lock to avoid data race
fscnick 17b75d1
[RayJob] requeue check context has canceled or not
fscnick 67df232
[RayJob] add cluster name on the cache key
fscnick 314df45
[RayJob] check raycluster is nil or not when initializing the dashboa…
fscnick e3cbe9f
[RayJob] avoid send to a block channel when graceful shutdown
fscnick f0a3b80
[RayJob] use contain to check the placeholder at the beginning of task
fscnick e55c2e0
[RayJob] graceful shutdown avoid panic from a nil task
fscnick ae8bf77
[RayJob] fix channel receive condition
fscnick 5c7a5bb
[RayJob] fix nil rayCluster in dashboard cache client
fscnick 8964c93
[RayJob] remove with name from log for sharing purpose
fscnick 90d2c30
[RayJob] remove checkname to avoid collision
fscnick 7502bc8
[RayJob] add task with blocking send
fscnick 886c07f
[RayJob] remove unused error
fscnick 339adf3
[RayJob] provide raycluster name if it is absent for removing cache
fscnick 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.
I think the
ErrAgainis a bit ambiguous, can we userNotFoundErroror others?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.
NotFoundError is probably not a good idea. It sounds like the JobInfo doesn't actually exist in the RayCluster.
I think ErrAgain is good enough, though.