k8up-io / wrestic

Restic Backup Kubernetes and OpenShift Wrapper - Part of K8up
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

Only wait for locks if it's an exclusive job #24

Closed Kidswiss closed 4 years ago

Kidswiss commented 4 years ago

Also the wait will now only check for the existence of any locks, as inspecting a lock will also create a lock, which in turn can lead to some race conditions.

Kidswiss commented 4 years ago

@srueg @simu

This approach should yield a much more stable waiting mechanism in wrestic. The same approach is also used for legacy Restic backups.