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

Multiple processes #14

Open
insomnix opened this issue Apr 9, 2013 · 4 comments
Open

Multiple processes #14

insomnix opened this issue Apr 9, 2013 · 4 comments

Comments

@insomnix
Copy link

insomnix commented Apr 9, 2013

I have multiple cron jobs. Some run every 15 minutes, others run once a day. Some of those once a day cron jobs takes more than 15 minutes to run. So what sometimes happens is that it will run that job twice because the "next run" doesn't update until after the cron job runs. What I think we need is the "next run" to update first or some sort of block placed on that job if it is already running.

@Jako
Copy link
Owner

Jako commented Sep 15, 2019

Each cronjob needs a started column with a boolean value.

@wfoojjaec
Copy link
Contributor

You can use flock on linux systems to block simultaneous execution of cron.php
Works well for my projects.

@Jako
Copy link
Owner

Jako commented Nov 15, 2019

Nice idea, but what happens, when the cron job crashes or runs in a time limit? Then we could use a register_shutdown_function to clear those locks that are not removed automatically.

@wfoojjaec
Copy link
Contributor

I assume, it is partially resolved via #46

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

No branches or pull requests

3 participants