Skip to content

fix(os): require dstack-prepare and the guest agent before the app - #1324

Merged
kvinwang merged 1 commit into
nextfrom
fix/app-compose-requires-prepare
Sep 23, 2026
Merged

kvinwang merged 1 commit into
nextfrom
fix/app-compose-requires-prepare

Conversation

@kvinwang

@kvinwang kvinwang commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

app-compose.service only had dstack-prepare.service in After=, and a failed unit satisfies that too. So if prepare failed, docker compose up could still run with no data disk mounted and no keys provisioned, and it would race the queued FailureAction=reboot.

This adds Requires=dstack-prepare.service dstack-guest-agent.service. Container runtimes stay in Wants= because the bash runner doesn't need them.

Note: an explicit systemctl stop/restart dstack-guest-agent now also stops/restarts the app.

@kvinwang
kvinwang force-pushed the fix/app-compose-requires-prepare branch from 8c6ea92 to 9f027f7 Compare September 23, 2026 02:36
@kvinwang
kvinwang merged commit 37f6872 into next Sep 23, 2026
8 checks passed
@kvinwang
kvinwang deleted the fix/app-compose-requires-prepare branch September 23, 2026 02:37
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