-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Labels
Description
Hey,
I made a small test with the scheduler on Laravel 5.2.
* * * * * php /Users/syl/Sites/pro/aotd-website/artisan schedule:run >> /dev/null 2>&1
protected function schedule(Schedule $schedule)
{
Log::info('schedule:run');
$schedule->command('newsletter:check')->everyMinute();
}
public function handle()
{
Log::info('newsletter:check');
}
Here is what I see in my AWS instance in production:
...
[2016-05-06 13:59:01] production.INFO: schedule:run
[2016-05-06 13:59:01] production.INFO: schedule:run
[2016-05-06 13:59:01] production.INFO: newsletter:check
[2016-05-06 14:00:01] production.INFO: schedule:run
[2016-05-06 14:00:01] production.INFO: schedule:run
[2016-05-06 14:01:01] production.INFO: schedule:run
[2016-05-06 14:01:01] production.INFO: schedule:run
[2016-05-06 14:01:01] production.INFO: newsletter:check
...
Issue 1
Why the schedule:run
log is printed twice?
Issue 2
My real problem, why the handle
method has not been called at 14:00:01
?
The same problem occurs with everyFiveMinutes()
.
Idea: as it seems to be OK on my OSX dev machine, what about the CRON parsing on AWS instance?
64bit Amazon Linux 2015.09 v2.0.8 running PHP 5.6
Bests
EDIT: May be related with #10588, but tested with 5 stars instead of 6 and still not working.
LaetitiaRiffaud, vivekrajr and sylouuu