-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
API cleanups. Remove worker argument. Remove some deprecated arguments. #4025
Conversation
Test FAILed. |
python/ray/parameter.py
Outdated
raise ValueError( | ||
"The 'num_workers' argument is deprecated. Please use " | ||
"'num_cpus' instead.") | ||
"The 'redirect_worker_output' argument is deprecated. Please " |
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.
nit: raise DeprecationWarning here and elsewhere
b934a10
to
b53ff01
Compare
b53ff01
to
98b1633
Compare
Test PASSed. |
Test PASSed. |
Test PASSed. |
@@ -262,7 +262,7 @@ def start_redis(self): | |||
redis_shard_ports=self._ray_params.redis_shard_ports, | |||
num_redis_shards=self._ray_params.num_redis_shards, | |||
redis_max_clients=self._ray_params.redis_max_clients, | |||
redirect_worker_output=self._ray_params.redirect_worker_output, | |||
redirect_worker_output=True, |
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.
How about just remove "redirect_worker_output" of _make_inc_temp
?
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.
@suquark I think that's probably a good idea, but the reason I didn't do it here is that I thought we might still need that functionality if starting workers in tmux
.
This PR does the following:
driver_mode
anduse_raylet
arguments toray.init()
.redirect_ouput
andredirect_worker_output
arguments toray.init()
._submit
.worker
argument from Ray API methods.