Skip to content

[UX]: live table when provisioning dstack configuration runs #1978#2036

Merged
jvstme merged 3 commits intodstackai:masterfrom
Tob-iee:issue_1951_live-table-for-runs
Nov 26, 2024
Merged

[UX]: live table when provisioning dstack configuration runs #1978#2036
jvstme merged 3 commits intodstackai:masterfrom
Tob-iee:issue_1951_live-table-for-runs

Conversation

@Tob-iee
Copy link
Copy Markdown
Contributor

@Tob-iee Tob-iee commented Nov 26, 2024

fixes #1951 @jvstme, yeah, you are right I didn't reflect the changes after merging dstackai:master into my branch. I re-opened it. Can you have another look? it should work fine

@jvstme jvstme self-requested a review November 26, 2024 16:26
- Remove redundant instructions when reattaching
- Add empty lines before and after the table
- Keep updating the table while the run is
  `terminating`. This provides faster feedback and
  more details for troubleshooting
- When provisioning finishes, update the table one
  more time so that it shows the relevant run
  status, e.g. `running`
Comment on lines +228 to +230
break
time.sleep(LIVE_TABLE_PROVISION_INTERVAL_SECS)
run.refresh()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines seem to be redundant:

  • break will never be reached after exit(1) on line 227
  • time.sleep is redundant because the decision to reattach is already made on line 216
  • run.refresh is redundant because the run was already refreshed on line 213

@jvstme
Copy link
Copy Markdown
Collaborator

jvstme commented Nov 26, 2024

@Tob-iee, thanks for reopening the PR. This version looks and works great. I've made some minor tweaks and will merge the PR soon. Thanks for contributing!

@jvstme jvstme merged commit 06581b9 into dstackai:master Nov 26, 2024
superprat pushed a commit to bahaal-tech/dstack that referenced this pull request Dec 20, 2024
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.

[UX] Show a live table in `dstack apply for provisioning runs (similar to fleets, volumes, gateways, etc)

2 participants