A
A
Alexander Apokin2017-03-25 11:59:28
Message Queues
Alexander Apokin, 2017-03-25 11:59:28

How to get error information while executing laravel queue?

Queues are started via supervisor.
If an error occurs in the failed method, a notification is sent to the mail.
I did not understand how to get error information from this method.
Who faced the issue of logging / error notification in the queue?
laravel version 5.2.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Apokin, 2017-05-01
@apokin

Updated to version 5.4.
Exception information is passed to the failed method in the Job. Then I send it to the mail. After some time, an error was found due to which the script execution stopped.

A
Alexander Aksentiev, 2017-03-25
@Sanasol

https://laravel.com/docs/5.4/queues#dealing-with-f...
// Send user notification of failure, etc...
add a method and send anything, any way, anywhere.

U
UksusoFF, 2017-03-25
@UksusoFF

You can use the sync driver and debug there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question