Skip to content

Commit

Permalink
Release locks when removing apps
Browse files Browse the repository at this point in the history
This prevents leftover locks that can prevent other operations from
taking place.

Change-type: patch
  • Loading branch information
pipex committed Mar 6, 2025
1 parent 5ef6b05 commit a40bab2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/compose/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ class AppImpl implements App {
}
}

// Release locks (if any) for all services before settling state
if (state.lock || state.hasLeftoverLocks) {
return [
generateStep('releaseLock', {
appId: this.appId,
lock: state.lock,
}),
];
}

return [];
}

Expand Down

0 comments on commit a40bab2

Please sign in to comment.