padok-team / burrito

🌯 Burrito is a TACoS 🌮
https://padok-team.github.io/burrito
Apache License 2.0
238 stars 9 forks source link

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

Open LucasMrqes opened 5 months ago

LucasMrqes commented 5 months ago

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:

LucasMrqes commented 3 months ago

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