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

SylvainCherriux's avatar

artisan crashes : Scheduled clorues can not be run in background

Hi ! I'm having an issue since i have updated to lumen 10.x. I can't run task in background, and even artisan is not working i get "Scheduled closures can not be run in the background." (coming from CallbackEvent.php line 105 )

(i use ubuntu or debian or manjaro, with php8.2)

Maybe i missed something somewhere ? Or am i missing a php package, something like that ? Thx

0 likes
2 replies
winnie80's avatar

Any luck with your problem? Got any solution? I got the same problem after updating to laravel 10.x It should be working based on latest docs .

Here is my code

$schedule
            ->command('finance:download-report --period=daily')
            ->daily()->at('10:00')
            ->withoutOverlapping()
            ->runInBackground();
Snapey's avatar

it would be an issue if you were running artisan serve and not a multithreaded web server

Please or to participate in this conversation.