stash icon indicating copy to clipboard operation
stash copied to clipboard

Catch TERM signal to unlock repos

Open tamalsaha opened this issue 6 years ago • 2 comments

We should catch TERM signal so that we can gracefully shutdown any restic process. Otherwise, we will get those locked repo issue.

tamalsaha avatar Jul 31 '19 04:07 tamalsaha

  • https://pracucci.com/graceful-shutdown-of-kubernetes-pods.html
  • https://golang.org/pkg/os/exec/#CommandContext

tamalsaha avatar Aug 01 '19 05:08 tamalsaha

We are running into this as well, if we deploy while a backup is running, the locks are never cleared

thlassche avatar Sep 12 '19 14:09 thlassche