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? #378

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

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

Bilge opened this issue Sep 26, 2021 · 2 comments

Comments

@Bilge
Copy link

Bilge commented Sep 26, 2021

Description
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).

@davidsneighbour
Copy link
Contributor

This library runs via cron and can run shell scripts. So if you want to run a shell script do it and take care that it does not time out. The job you are running is irrelevant if you control the duration of the job and the time out option. Read the documentation for more information.

@PabloKowalczyk
Copy link
Collaborator

Hello, this functionality is not supported.

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

3 participants