burrito icon indicating copy to clipboard operation
burrito copied to clipboard

Unlock layer when locked by a runner that does not exist anymore

Open LucasMrqes opened this issue 1 year ago • 1 comments

For unknown reasons, it happens that Burrito locks a layer and never unlocks it (probably because a pod was killed due to a spot instance reclaim). That causes all the next runs to fail, as the layer is locked. To prevent this behavior, we could implement a way to unlock the layer before starting a plan / apply operation only if the following conditions are met:

  • The layer was locked by a Burrito run
  • The pod that locked the layer is not running anymore

LucasMrqes avatar Feb 06 '24 10:02 LucasMrqes

Furthermore, show in the UI when a layer is locked, that could be useful if somebody (or an automated process) left a lock on a layer

LucasMrqes avatar Apr 24 '24 14:04 LucasMrqes