alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 14 forks source link

Handle dangling lock files #1636

Closed JimMadge closed 1 month ago

JimMadge commented 11 months ago

:white_check_mark: Checklist

: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?

jemrobinson commented 11 months ago

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?

JimMadge commented 11 months ago

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?

:+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.