Blocking asyncio get warning should be logger.warn not logger.debug (#11141)

This commit is contained in:
Eric Liang 2020-09-30 16:16:35 -07:00 committed by GitHub
parent 4445f32798
commit 090002b0ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"):