Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchdog script potential race condition #10

Open
randomorder opened this issue Mar 30, 2018 · 0 comments
Open

Watchdog script potential race condition #10

randomorder opened this issue Mar 30, 2018 · 0 comments
Labels

Comments

@randomorder
Copy link
Member

There is no locking mechanism preventing multiple instances of the watchdog script to run in parallel.
The watchdog script is meant to be run periodically (by CRON for instance) but every execution of the script can take quite a long time due to the HTTP request timeouts and retries so we can end up having multiple instances of the script running in parallel with unpredictable result.
Would be nice to have some kind of locking mechanism ( for instance http://mywiki.wooledge.org/BashFAQ/045 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant