cronie-crond / cronie

Cronie cron daemon project
Other
467 stars 80 forks source link

Add green energy feature for random within range jobs? #138

Open physikerwelt opened 1 year ago

physikerwelt commented 1 year ago

The ~ operator allows scheduling a job randomly within a range. In #95, it is outlined how the operator works:

fsm-1

Instead of executing the job at random times, it might be better for the environment to execute it when green energy is available. This would require an API call to a program that determines if that is the case or not.

Is that something that could be imagined in the future? What would the requirements for the API be?

t8m commented 1 year ago

The current implementation is unfortunately not too helping with this RFE as the actual job execution time gets determined during the parsing of the crontab. So I am not sure how the API should look like.