Skip to content

Conversation

@peterschmidt85
Copy link
Contributor

  • dstack attach now shows a live spinner with the run status table while the run is provisioning (same UX as dstack apply), instead of silently polling or exiting with an error.

  • When a port is already in use, both dstack attach and dstack apply now show a clear error message with a -p suggestion instead of a raw traceback:

    Failed to attach: port 8000 is already in use. Use -p in dstack attach to override the local port mapping, e.g. -p 8001:8000.
    

- Show a spinner with status table in `dstack attach` while the run
  is provisioning, matching the UX of `dstack apply`.
- Handle `PortUsedError` gracefully in both `dstack attach` and
  `dstack apply` instead of showing a raw traceback. The error message
  suggests using `-p` to override the local port mapping.
- Store the port number on `PortUsedError` for structured access.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant