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 catch-up like anacron/fcron? #377

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

Does this library support catch-up like anacron/fcron? #377

Bilge opened this issue Sep 26, 2021 · 5 comments

Comments

@Bilge
Copy link

Bilge commented Sep 26, 2021

Description
If a system is restarted or otherwise down for some amount of time, jobs can be missed. Systems like anacron and fcron support "catching-up" for jobs that were missed. Does this library implement any kind of catch-up mechanism?

@davidsneighbour
Copy link
Contributor

This library runs via cronjob, so "catching up" would just be a "this cronjob should have run by now so let it run" thing which is possible with this library.

@PabloKowalczyk
Copy link
Collaborator

PabloKowalczyk commented Oct 5, 2021

This will be nice addition but currently there is no "catch-up" mechanism.

@Bilge
Copy link
Author

Bilge commented Oct 5, 2021

It seems the actual triggering mechanism is not even implemented in this library, but in dragonmantank/cron-expression, which makes the faulty assumption that the script can be reliably triggered every minute. I say faulty because it seems erroneous to assume not a single minute will be missed given factors like DST, clock jitter and server restarts, especially if it triggers around the 0 second mark instead of in the middle of the minute at around 30 seconds -- something which the library appears to make no effort to control.

Given that this is the case, we would either need to convince the upstream library to make amends to accommodate these improvements, or forgo it altogether and provide a more sophisticated triggering mechanism directly.

@PabloKowalczyk
Copy link
Collaborator

Actually Crunz doesn't run like server/daemon, Cron trigger Crunz every minute and that's all, if Cron have delays Crunz will also have delays.

@Bilge
Copy link
Author

Bilge commented Oct 5, 2021

Yeah, that's... my point.

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