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

[xray] Users get no warning for infeasible tasks. #2780

Closed
robertnishihara opened this issue Aug 31, 2018 · 2 comments · Fixed by #2784
Closed

[xray] Users get no warning for infeasible tasks. #2780

robertnishihara opened this issue Aug 31, 2018 · 2 comments · Fixed by #2784

Comments

@robertnishihara
Copy link
Collaborator

robertnishihara commented Aug 31, 2018

Start Ray with

RAY_USE_XRAY=1 ray start --head --redis-port=6379 --num-gpus=0

Then start RAY_USE_XRAY=1 ipython and run

import ray

ray.init(redis_address='localhost:6379')

@ray.remote(num_gpus=1)
def f():
    return 1

f.remote()

f will never execute because it is infeasible, and yet the user will get no warning.

@atumanov
Copy link
Contributor

@robertnishihara
Copy link
Collaborator Author

That's good, but it goes to a log file (assuming output is redirected, which is the default in the cluster setting). It'd be best for it to be pushed to the driver.

robertnishihara pushed a commit that referenced this issue Sep 1, 2018
This PR pushes a warning to the user for infeasible tasks to alert them to the fact that they can't currently be executed. Fixes #2780.
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 a pull request may close this issue.

2 participants