Skip to content

feat: Add force_restart option to SkypilotBackend #135

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

Merged
merged 1 commit into from
May 21, 2025
Merged

Conversation

corbt
Copy link
Contributor

@corbt corbt commented May 21, 2025

  • Introduced a force_restart parameter to the SkyPilotBackend class to force cancellation of existing art server tasks if needed.
  • Also added logic to sync local ART code to SkypilotBackend every time a new task is run, not just on cluster initialization.

Does not fix the hanging training jobs, but might make it easier to debug them.

- Introduced a `force_restart` parameter to the SkyPilotBackend class to force cancellation of existing art server tasks if needed.
- Also added logic to sync local ART code to SkypilotBackend every time a new task is run, not just on cluster initialization.

Does not fix the hanging training jobs, but might make it easier to debug them.
@corbt corbt requested a review from arcticfly May 21, 2025 02:42
# If a local path was provided for art_version, ensure it is mounted so the latest
# code is synced to the remote cluster every time we (re)launch the art_server task.
if art_version is not None and os.path.exists(art_version):
art_server_task.set_file_mounts({"~/sky_workdir": art_version})
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, not sure we want to do this by default. It's conceivable that I might be editing code on the cluster itself, and I don't want that getting overwritten.

Maybe make this a parameter, and default to False?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed we'll experiment with keeping this on by default for now and can turn it off if it ends up being annoying for @arcticfly's workflow.

@corbt corbt merged commit 3fe0f58 into main May 21, 2025
1 check passed
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.

2 participants