data-safe-haven
data-safe-haven copied to clipboard
Handle dangling lock files
:white_check_mark: Checklist
- [x] I have searched open and closed issues for duplicates.
- [x] This is a request for a new feature in the Data Safe Haven or an upgrade to an existing feature.
- [x] The feature is still missing in the latest version.
- [x] I have read through the documentation.
- [x] This isn't an open-ended question (open a discussion if it is).
:strawberry: Suggested change
When running, Pulumi creates a lockfile to prevent changes being made concurrently.
If the dsh
process ends unexpectedly (for example, loss of internet connection, sigkill) the lockfile may remain, blocking any operations until it is removed.
The pulumi cancel
command can be used to rectify this.
:steam_locomotive: How could this be done?
- Wrapper for pulumi cancel
- Catching this outcome and prompting the user to take manual intervention
The --force
arguments to dsh deploy shm
and dsh deploy sre
will do this. Could be flagged better in the documentation though and/or checked before running?
The
--force
arguments todsh deploy shm
anddsh deploy sre
will do this. Could be flagged better in the documentation though and/or checked before running?
:+1:
Could be. I think we also discussed using a --force
flag to indicate that changes should be made (otherwise prompt user for confirmation). If so that would be repurposed.