Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "ray timeline" command to auto-dump Chrome trace for the current Ray instance #4239

Merged
merged 5 commits into from
Mar 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update scripts.py
  • Loading branch information
robertnishihara authored Mar 3, 2019
commit 10e36dcaeb18562d85cb699e42b9f013e618e075
5 changes: 3 additions & 2 deletions python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import logging
import os
import subprocess
import sys

import ray.services as services
from ray.autoscaler.commands import (
Expand Down Expand Up @@ -723,11 +724,11 @@ def timeline(redis_address):
print("Found multiple active Ray instances: {}. ".format(
redis_addresses) +
"Please specify the one to connect to with --redis-address.")
exit(1)
sys.exit(1)
elif not redis_addresses:
print("Could not find any running Ray instance. "
"Please specify the one to connect to with --redis-address.")
exit(1)
sys.exit(1)
redis_address = redis_addresses.pop()
print("Connecting to Ray instance at {}.".format(redis_address))
ericl marked this conversation as resolved.
Show resolved Hide resolved
ray.init(redis_address=redis_address)
Expand Down