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

parallel cronjobs whitelist and blacklist switched #56

Closed
davidverholen opened this issue Feb 20, 2015 · 3 comments
Closed

parallel cronjobs whitelist and blacklist switched #56

davidverholen opened this issue Feb 20, 2015 · 3 comments

Comments

@davidverholen
Copy link
Contributor

Hey,

I'm just testing around with parallel cronjobs and have some weird behaviour. My crontab looks like this:

* * * * * /bin/sh /var/www/casamoda/casamodab2c/project/root/cron.sh cron.php -malways 1
* * * * * /usr/bin/env SCHEDULER_BLACKLIST='long_running_process' /bin/sh /var/www/magento/root/cron.sh cron.php -mdefault 1
* * * * * /usr/bin/env SCHEDULER_WHITELIST='long_running_process' /bin/sh /var/www/magento/root/cron.sh cron-slow.php -mdefault 1

Now, when I observe the running Processes, the cron.php executes the long_running_process, and the cron-slow.php executes all other processes.

I looked into your code and really can't explain myself, why this happens.

It's not a Problem with 2 cron processes, but it becomes one if you want to have more.

Maybe you have an idea?

@davidverholen
Copy link
Contributor Author

ok this seems to be another Problem.

We have some more jobs in the white/blacklist. Some seem to work right, some not. Yes I checked the spelling multiple times ;)

@fbrnc
Copy link
Member

fbrnc commented Mar 3, 2015

Hi David,

we'll be a releasing a new version of Aoe_Scheduler at the end of this week and the blacklist/whitelist feature has been cleaned up significantly. If you still have an issue I suggest you check the new version once it is out. (We'll have to write some documentation on how the new feature works...)

Have a great day,
Fabrizio

@davidverholen
Copy link
Contributor Author

Hey,

good to hear. We will try it :)
today we started using the parallel cronjobs in a productive environment. Seems to work.
I'm not sure why one job was executed by the wrong cron process, yet. Maybe it's fixed with the update then

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

2 participants