Support identical cron schedule (#87)

* Retry on lock being unavailable

* Refactor locking to return plain error

* Collect LockedTime in stats

* Add test case

* Add documentation for LOCK_TIMEOUT

* Log in case lock needs to be awaited

* Release resources created for awaiting lock
This commit is contained in:
Frederik Ring
2022-03-25 18:26:34 +01:00
committed by GitHub
parent 9bc8db0f7c
commit da8c63f755
13 changed files with 90 additions and 23 deletions

View File

@@ -47,6 +47,8 @@ type script struct {
file string
stats *Stats
encounteredLock bool
c *Config
}