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

This commit is contained in:
Eric Liang authored and GitHub committed 2020-09-30 16:16:35 -07:00
1 parent 4445f32798
commit 090002b0ce
1 file changed
+4 -4
+4 -4
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"):