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

disnhau's avatar

Lumen queue delay does not work?

Hello everyone,

I am using Queue with Lumen 8.x: https://lumen.laravel.com/docs/8.x/queues

  • driver: database
  • on terminal: php artisan queue:work

in Queue handle() method: just print data test

in controller: dispatch((new ProcessPendingJob($userObject))->delay(10))

then I test go to api url, it show data response from Queue ProcessPendingJob (no delay 10s)

in terminal tab, there is nothing print

What is the problem on this case. Thanks

0 likes
2 replies
bugsysha's avatar

Is it implementing Illuminate\Contracts\Queue\ShouldQueue?

Please or to participate in this conversation.