Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MagicDid's avatar

Schedule Artisan command doesn't execute command

Hi everybody,

I have a Laravel 10 app (version 10.48.10) and I'm trying to schedule a queue:work artisan command and nothing happens.

In the Kernel.php file I have this:

    protected function schedule(Schedule $schedule): void
    {
        $schedule->command('queue:work --queue=default')
            ->everyTwoMinutes()
            ->appendOutputTo(storage_path() . '/logs/scheduler.log');
    }

When I launch the artisan command php artisan schedule:list I can see my schedule and the decreasing timing but when it reaches 0, nothing is executed (I do not even have a scheduler.log file in the logs).

When I manually execute the php artisan queue:work it works perfectly.

Any ideas ? Thanks in advance Did

0 likes
3 replies
puklipo's avatar
php artisan queue:work --once

queue:work command is typically run as a daemon to keep it running all the time.

However, if this is not possible, you can simply use queue:work --once to run it periodically using a scheduler.

Please or to participate in this conversation.