mirror of
https://github.com/wassname/ray.git
synced 2026-10-29 13:30:42 +08:00
Mute asyncio warning for Serve (#11682)
This commit is contained in:
1 parent
64e3c9741a
commit
46afec5660
1 file changed
+5
@@ -1,6 +1,11 @@
|
||||
from ray.serve.api import (accept_batch, Client, connect, start) # noqa: F401
|
||||
from ray.serve.config import BackendConfig
|
||||
|
||||
# Mute the warning because Serve sometimes intentionally calls
|
||||
# ray.get inside async actors.
|
||||
import ray.worker
|
||||
ray.worker.blocking_get_inside_async_warned = True
|
||||
|
||||
__all__ = [
|
||||
"accept_batch",
|
||||
"BackendConfig",
|
||||
|
||||
Reference in new issue
Block a user