Support the ongoing development of Laravel.io →
posted 7 years ago
Queues
Last updated 1 year ago.
0

since it's queued the output should be logged on to the queue log. to see if it works, first set the queue driver to sync, this will log everything to the app log. Once that's confirmed change it back to your queue driver and check the output of the queue log.

0

Thank you, I'll try. Where is the queue log? Should i define it somewhere?

The constructor is logged in the app log, is this correct or both constructor and handler should log to the queue log?

I've tried to queue a closure and that's logged to the app log.

0

Even by using "sync" as queue driver the handler is not logged, only the constructor.

0

"handle" method is totally ignored, as even by putting a code that should trigger a "fatal error", nothing is triggered.

0

could you try using Artisan::queue(); instead of Queue::push(); https://laravel.com/docs/5.3/artisan#programatically-executing...

0

based on docs, this seems useful to queue artisan commands. I don't have to queue an artisan command, but a laravel command.

The handle() method is never called when queueing (and this is wrote on official docs) because it would be called by the queue worker/listener but this is not happening:

# php artisan queue:work -vvv
Processed: Illuminate\Queue\CallQueuedHandler@call

so, artisan is processing the queue, but is not calling the "handle" method

0

No advice?

0

bump. i'm still unable to get this working.

0

Only a closure is working. any advice?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

guestisp guestisp Joined 17 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.