P
P
Pavel Grom2018-03-24 14:36:35
Redis
Pavel Grom, 2018-03-24 14:36:35

How can I debug a full queue in laravel 5?

My job fails with --tries=3, but works with --tries=5 and higher.
After 3 attempts, the
App\Jobs\CacheHist has been attempted too many times or run too long exception is thrown. The job may have previously timed out.
Well, ok, it is clear that attempts to execute a job exceed 3 pieces.
But how can you debug why the job tries to be executed again at all?
PS I did logging in the handle method just before my code.
So I found out that with 3 attempts, this method does not even reach.
Laravel 5.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-03-24
@Sanasol

The job may have previously timed out.

The error directly says why it could not be executed the first time, and tried all the way until the limit of attempts was over.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question