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

Implement semaphore mechanism to assure crontab calls stacking up. #29

Open
cttyler opened this issue Jan 25, 2023 · 1 comment
Open

Comments

@cttyler
Copy link
Contributor

cttyler commented Jan 25, 2023

Implement a semaphore mechanism in the scripts to assure crontab calls, which run every minute, don't stack up if for some reason the usually quick commands it calls take more than a minute to run.

@jdputsch
Copy link
Contributor

@cttyler : quick questions/statements:

  1. For monitor_metrics.sh were you picturing a lock at the level of monitor_metrics.sh or at the level of the individual functions in that script?
  2. I would assume monitor_metrics.py and/or it's wrapper would just be locked at the script level.

I've done this locking for shell scripts in the past, and it's quite simple to do the locking at the script level, quite willing to conribute something here.

Jeff.

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

No branches or pull requests

2 participants