From b03147e7bfcc50d9e8e862584a7860d534b3419e Mon Sep 17 00:00:00 2001 From: Mitchell Stern Date: Mon, 23 Sep 2019 14:52:23 -0700 Subject: [PATCH] Update call to py-spy to conform to new API (#5758) --- python/ray/scripts/scripts.py | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index b17192a6e..f6365df51 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -751,7 +751,7 @@ workers=$( for worker in $workers; do echo "Stack dump for $worker"; pid=`echo $worker | awk '{print $2}'`; - sudo $pyspy --pid $pid --dump; + sudo $pyspy dump --pid $pid; echo; done """ diff --git a/python/setup.py b/python/setup.py index d34c356b0..395eb2e2b 100644 --- a/python/setup.py +++ b/python/setup.py @@ -73,7 +73,7 @@ extras = { "rllib": [ "pyyaml", "gym[atari]", "opencv-python-headless", "lz4", "scipy" ], - "debug": ["psutil", "setproctitle", "py-spy"], + "debug": ["psutil", "setproctitle", "py-spy >= 0.2.0"], "dashboard": ["aiohttp", "psutil", "setproctitle"], "serve": ["uvicorn", "pygments", "werkzeug"], }