-
Notifications
You must be signed in to change notification settings - Fork 64
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
Exception Impossible CRON expression
raised on php-5.5.15(debian)
#31
Comments
Hi @lokielse, thank you for your message. That really sounds strange. I will check this. |
Okay I installed Route::get('cron/test', function () {
Cron::setDisablePreventOverlapping();
Cron::setDatabaseLogging(true);
Cron::setLogOnlyErrorJobsToDatabase(false);
Cron::add('test_cron_1', '* * * * * *', function () {
});
Cron::add('test_cron_2', '0 0 * * *', function () {
});
Cron::add('test_cron_3', '0 1 * * *', function () {
});
Cron::add('test_cron_4', '0 2 * * *', function () {
});
Cron::add('test_cron_5', '0 3 * * *', function () {
});
Cron::add('test_cron_6', '0 4 * * *', function () {
});
Cron::add('test_cron_7', '0 5 * * *', function () {
});
Cron::add('test_cron_8', '0 6 * * *', function () {
});
Cron::add('test_cron_9', '0 9 * * *', function () {
});
Cron::add('test_cron_10', '0 12 * * *', function () {
});
return Cron::run();
}); Unfortunately it works for me and I don't get the |
I use your code snippet one by one. this work Cron::add('test_cron_1', '* * * * * *', function () {
}); this one not work Cron::add('test_cron_2', '0 0 * * *', function () {
}); and I truncate tables Then after I reinstall your cron lib just now. this one work Cron::add('test_cron_2', '0 0 * * *', function () {
}); but this one not work Cron::add('test_cron_3, '0 1 * * *', function () {
});
I guess that it related to the time. |
That is really strange. I only get the |
19. RuntimeException
…/vendor/mtdowling/cron-expression/src/Cron/CronExpression.php321
18. Cron\CronExpression getRunDate
…/vendor/mtdowling/cron-expression/src/Cron/CronExpression.php157
17. Cron\CronExpression getNextRunDate
…/vendor/mtdowling/cron-expression/src/Cron/CronExpression.php252
16. Cron\CronExpression isDue
…/vendor/liebig/cron/src/Liebig/Cron/Cron.php219
15. Liebig\Cron\Cron run
…/workbench/pay/union/vendor/illuminate/support/Illuminate/Support/Facades/Facade.php205
14. Illuminate\Support\Facades\Facade __callStatic
…/app/routes.php32
13. Liebig\Cron\Facades\Cron run
…/app/routes.php32 |
laravel config app.php
php.ini
|
Seems to be a timezone problem. Please try to change laravels timezone to |
Yeah! solved. I should use timezone I use hahaha ;D |
thanks @liebig |
I am glad to hear this :) You are always welcome, @lokielse! |
http://php.net/manual/en/timezones.others.php here is a warning.
|
Hello, So it need to add time zone in
and php.ini
or only in the laravel config app.php ? Thank you. |
Both better while I changed only laravel config |
OK Thank you. I have a little bit confuse about this cron package but I will create a new issue. |
Hi @liebig , Here raise an exception after I upgrade my php from
5.4.9
to5.5.15
today.I did not change anything of my code, and I found that there raise an exception said
Impossible CRON expression
inCronExpression.php
line atline 321
andcron.lock
created in storage path.for example, all the follow will not work(Impossible CRON expression)
but the follow will work!
so strage issue. need your help!!!
The text was updated successfully, but these errors were encountered: