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

[core][state] Task events backend - Port state API [5/n] #31278

Merged
merged 8 commits into from
Dec 23, 2022

Conversation

rickyyx
Copy link
Contributor

@rickyyx rickyyx commented Dec 21, 2022

Signed-off-by: rickyyx [email protected]

Why are these changes needed?

Previous PRs:

This PR:

With the change,

  • list_tasks now will return tasks with attempt number as an additional column.
  • get_task might return multiple task attempt entries if there are retries.

There is also some plumbing in the test and in core (esp in the test logic) given the changes. Major changes in the PR are:

  • Add limit support to GcsTaskManager
  • Change the state aggregator to get tasks from GCS.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: rickyyx <[email protected]>
@rickyyx rickyyx changed the title init [core][state] Task backend - Port state API [6/n] Dec 22, 2022
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
@ericl
Copy link
Contributor

ericl commented Dec 22, 2022

Could we split out the unrelated changes to TaskManager? These are high-risk changes, so we should review them independently of the status API.

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Dec 22, 2022
@rickyyx rickyyx removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Dec 22, 2022
dashboard/state_aggregator.py Outdated Show resolved Hide resolved
@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Dec 22, 2022
Signed-off-by: rickyyx <[email protected]>
@rickyyx rickyyx removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Dec 22, 2022
@ericl ericl merged commit eb096f7 into ray-project:master Dec 23, 2022
@rickyyx rickyyx changed the title [core][state] Task backend - Port state API [6/n] [core][state] Task backend - Port state API [5/n] Dec 23, 2022
@rickyyx rickyyx changed the title [core][state] Task backend - Port state API [5/n] [core][state] Task events backend - Port state API [5/n] Dec 23, 2022
AmeerHajAli pushed a commit that referenced this pull request Jan 12, 2023
**Previous PRs:**
 - #30829: 
 - #30953: 
 - #30867: 
 - #30979: 
 - #30934
 - #31207
**This PR:** 

With the change, 
- `list_tasks` now will return tasks with attempt number as an additional column. 
- `get_task` might return multiple task attempt entries if there are retries. 


There is also some plumbing in the test and in core (esp  in the test logic) given the changes. Major changes in the PR are: 
- Add limit support to `GcsTaskManager`
- Change the state aggregator to get tasks from GCS.
tamohannes pushed a commit to ju2ez/ray that referenced this pull request Jan 25, 2023
**Previous PRs:**
 - ray-project#30829: 
 - ray-project#30953: 
 - ray-project#30867: 
 - ray-project#30979: 
 - ray-project#30934
 - ray-project#31207
**This PR:** 

With the change, 
- `list_tasks` now will return tasks with attempt number as an additional column. 
- `get_task` might return multiple task attempt entries if there are retries. 


There is also some plumbing in the test and in core (esp  in the test logic) given the changes. Major changes in the PR are: 
- Add limit support to `GcsTaskManager`
- Change the state aggregator to get tasks from GCS.

Signed-off-by: tmynn <[email protected]>
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