mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Blocking asyncio get warning should be logger.warn not logger.debug (#11141)
This commit is contained in:
parent
4445f32798
commit
090002b0ce
1 changed files with 4 additions and 4 deletions
|
@ -1422,10 +1422,10 @@ def get(object_refs, *, timeout=None):
|
|||
"core_worker") and worker.core_worker.current_actor_is_asyncio():
|
||||
global blocking_get_inside_async_warned
|
||||
if not blocking_get_inside_async_warned:
|
||||
logger.debug("Using blocking ray.get inside async actor. "
|
||||
"This blocks the event loop. Please use `await` "
|
||||
"on object ref with asyncio.gather if you want to "
|
||||
"yield execution to the event loop instead.")
|
||||
logger.warning("Using blocking ray.get inside async actor. "
|
||||
"This blocks the event loop. Please use `await` "
|
||||
"on object ref with asyncio.gather if you want to "
|
||||
"yield execution to the event loop instead.")
|
||||
blocking_get_inside_async_warned = True
|
||||
|
||||
with profiling.profile("ray.get"):
|
||||
|
|
Loading…
Add table
Reference in a new issue