-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[core][train] Ray Train disables blocking get inside async warning #56757
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
Changes from 1 commit
f424314
28c2fed
2e12078
85856c4
2304f13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| import os | ||
| from typing import Dict | ||
|
|
||
| from ray._private.ray_constants import env_bool, env_set_by_user | ||
| from ray._private.ray_constants import ( | ||
| WARN_BLOCKING_GET_INSIDE_ASYNC_ENV_VAR, | ||
| env_bool, | ||
| env_set_by_user, | ||
| ) | ||
|
|
||
| # Unsupported configs can use this value to detect if the user has set it. | ||
| _UNSUPPORTED = "UNSUPPORTED" | ||
|
|
@@ -76,9 +80,13 @@ | |
| # GET_ACTOR_TIMEOUT_S_ENV_VAR * CONTROLLERS_TO_POLL_PER_ITERATION_ENV_VAR should be | ||
| # way less than STATE_ACTOR_RECONCILIATION_INTERVAL_S_ENV_VAR. | ||
| CONTROLLERS_TO_POLL_PER_ITERATION: int = 5 | ||
|
|
||
| # Environment variable for Train execution callbacks | ||
| RAY_TRAIN_CALLBACKS_ENV_VAR = "RAY_TRAIN_CALLBACKS" | ||
|
|
||
| # Ray Train does not warn by default when using blocking ray.get inside async actor. | ||
| DEFAULT_WARN_BLOCKING_GET_INSIDE_ASYNC_VALUE = "0" | ||
|
||
|
|
||
| # Environment variables to propagate from the driver to the controller, | ||
| # and then from the controller to the workers. | ||
| ENV_VARS_TO_PROPAGATE = { | ||
|
|
@@ -93,6 +101,7 @@ | |
| ENABLE_WORKER_STRUCTURED_LOGGING_ENV_VAR, | ||
| ENABLE_STATE_ACTOR_RECONCILIATION_ENV_VAR, | ||
| STATE_ACTOR_RECONCILIATION_INTERVAL_S_ENV_VAR, | ||
| WARN_BLOCKING_GET_INSIDE_ASYNC_ENV_VAR, | ||
| } | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.