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

Render tasks that are not schedulable on the dashboard. #7034

Conversation

rkooo567
Copy link
Contributor

@rkooo567 rkooo567 commented Feb 3, 2020

Why are these changes needed?

Currently, the dashboard's logical view only renders infeasible tasks (Tasks that will never be able to satisfy its requirement). But we also want to show tasks that are currently not schedulable because there are no available resources. (E.g. There is one gpu available and it is taken by one actor. If you initiate the new actor, it is pending until the first actor is freed). It is not identified as infeasibleTasks. This PR addresses this issue. Look at the picture below for better understanding.

Screen Shot 2020-02-03 at 2 32 04 PM

Q&A

  • Why do you use ready tasks?
    Ready tasks are remained in the queue for a long time only if there are no allocatable resources although dependencies are ready. That being said, we can represent WaitUntilResourceAvailable tasks by using ready tasks. This is the core assumption of this PR, so please comment if this assumption is wrong. I commented this workaround solution can be addressed more cleanly by creating a new taskState, WaitUntilResourceAvailable.
  • Why does it only handle ActorCreationTask?
    Currently, the logical view of dashboard only supports ActorCreationTask. Future PRs will address this problem.

Related issue number

RS-726

Test Plan

  • Manual testing using a script.
  • Ran test_metrics.py

Checks

@rkooo567 rkooo567 requested review from pcmoritz and edoakes February 3, 2020 22:45
@rkooo567 rkooo567 self-assigned this Feb 3, 2020
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@edoakes edoakes changed the title Redner tasks that are not schedulable on the dashboard. Render tasks that are not schedulable on the dashboard. Feb 3, 2020
Copy link
Contributor

@pcmoritz pcmoritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can be merged if the tests pass. I tried it out locally too.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21331/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21324/
Test PASSed.

@pcmoritz
Copy link
Contributor

pcmoritz commented Feb 4, 2020

@rkooo567 There are some test failures, see e.g. https://travis-ci.com/ray-project/ray/jobs/283233241

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21337/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21341/
Test PASSed.

@rkooo567
Copy link
Contributor Author

rkooo567 commented Feb 4, 2020

@pcmoritz The new commit should fix the bug. I will let you know if it passes tests.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21397/
Test PASSed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21402/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21403/
Test FAILed.

@edoakes
Copy link
Contributor

edoakes commented Feb 6, 2020

jenkins retest this please

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21517/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21521/
Test FAILed.

@rkooo567
Copy link
Contributor Author

rkooo567 commented Feb 7, 2020

jenkins retest this please

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21576/
Test FAILed.

@rkooo567
Copy link
Contributor Author

rkooo567 commented Feb 8, 2020

jenkins retest this please

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21627/
Test PASSed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21629/
Test FAILed.

@rkooo567
Copy link
Contributor Author

rkooo567 commented Feb 9, 2020

jenkins retest this please

1 similar comment
@rkooo567
Copy link
Contributor Author

jenkins retest this please

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/21657/
Test PASSed.

@edoakes edoakes merged commit 1e69067 into ray-project:master Feb 10, 2020
@rkooo567 rkooo567 deleted the render_ready_tasks_and_infeasible_creation_tasks branch February 17, 2022 00:29
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.

4 participants