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

Does this library support system load average thresholds like fcron? #135

Open
Bilge opened this issue Sep 26, 2021 · 0 comments
Open

Does this library support system load average thresholds like fcron? #135

Bilge opened this issue Sep 26, 2021 · 0 comments

Comments

@Bilge
Copy link

Bilge commented Sep 26, 2021

fcron has a feature to avoid starting jobs whilst system load is too high. It does this with configuration options such as lavg, or lavg1, lavg5 and lavg15 options which specify the threshold under which the system must be operating to begin the job. It may be combined with until to specify a timeout period after which the job would run regardless of load.

Example

# wait a maximum of 5 hours every day for a fall of the load average
@lavgand,lavg(1,2.0,3.0),until(5h) 1d echo "Load average is going down" 

For more, see fcrontab (5).

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

1 participant