The function of the CLI ray dashboard is to port forward to the cluster. While the command is running, it blocks the terminal indefinitely as the ports are being forwarded, as expected.
However, canceling the command with Ctrl+C doesn't seem to stop the port forwarding. I don't know any other way to cancel the command.
Versions / Dependencies
MacOS 12.6.1, Python 3.8, Ray master branch
Reproduction script
Ensure AWS credentials are set up
edit ray/python/ray/autoscaler/aws/example-full.yaml as follows to get it to work out of the box:
auth:
ssh_user: ubuntu
# By default Ray creates a new private keypair, but you can also use your own.
# If you do so, make sure to also set "KeyName" in the head and worker node
# configurations below.
ssh_private_key: ~/.ssh/MyAutoscaler.pem
[...]
available_node_types:
ray.head.default:
node_config:
KeyName: MyAutoscaler
Here MyAutoscaler is a key I made in the AWS console.
Run ray up ray/python/ray/autoscaler/aws/example-full.yaml and hit enter or Y until the cluster is up
Run ray dashboard
Check that the dashboard is working in your browser at localhost:8265
Ctrl+C the ray dashboard command
(This is the bug) The dashboard in your browser continues to update. (And you can continue to run jobs: RAY_ADDRESS="http://localhost:8265" ray job submit -- python -c 'import ray; ray.init(); print("hi")')
Issue Severity
Medium: It is a significant difficulty but I can work around it.
What happened + What you expected to happen
The function of the CLI
ray dashboard
is to port forward to the cluster. While the command is running, it blocks the terminal indefinitely as the ports are being forwarded, as expected.However, canceling the command with
Ctrl+C
doesn't seem to stop the port forwarding. I don't know any other way to cancel the command.Versions / Dependencies
MacOS 12.6.1, Python 3.8, Ray master branch
Reproduction script
ray/python/ray/autoscaler/aws/example-full.yaml
as follows to get it to work out of the box:Here MyAutoscaler is a key I made in the AWS console.
ray up ray/python/ray/autoscaler/aws/example-full.yaml
and hit enter or Y until the cluster is upray dashboard
localhost:8265
ray dashboard
commandRAY_ADDRESS="http://localhost:8265" ray job submit -- python -c 'import ray; ray.init(); print("hi")'
)Issue Severity
Medium: It is a significant difficulty but I can work around it.