mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 18:10:13 +08:00
Including psutil & setproctitle (#7031)
This commit is contained in:
@@ -27,6 +27,8 @@ import ray.ray_constants as ray_constants
|
||||
import ray.remote_function
|
||||
import ray.serialization as serialization
|
||||
import ray.services as services
|
||||
import ray
|
||||
import setproctitle
|
||||
import ray.signature
|
||||
import ray.state
|
||||
|
||||
@@ -63,11 +65,6 @@ ERROR_KEY_PREFIX = b"Error:"
|
||||
# entry/init points.
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
import setproctitle
|
||||
except ImportError:
|
||||
setproctitle = None
|
||||
|
||||
# Whether we should warn about slow put performance.
|
||||
if os.environ.get("OMP_NUM_THREADS") == "1":
|
||||
should_warn_of_slow_puts = True
|
||||
|
||||
Reference in New Issue
Block a user