Laravel 5.3 Schedule Doesn't work (ready-to-run commands aren't ready).

Below is the schedule function

protected function schedule(Schedule $schedule)
    {
        $schedule->command('queue:work')
            ->everyMinute()
            ->withoutOverlapping();
    }

Below is the cron for laravel

*   *   *   *   *   /usr/local/bin/php /home/space/public_html/project/artisan schedule:run >> /home/space/public_html/project/public/op.txt 2>&1

But every time the cron exits

No scheduled commands are ready to run.

queue: the job is not running, what am I doing wrong?

+4
source share
1 answer

Deleting all schedule files in the vault / wireframe did the job.

The problem was that the command was executed, but there was some error, so it never worked, but the command was active so that it would not start cron again (because I used withoutOverlapping ()).

+4
source

Source: https://habr.com/ru/post/1656432/


All Articles