H
H
hard_o2020-05-03 18:13:37
Amazon Web Services
hard_o, 2020-05-03 18:13:37

How to remove/increase timeout in queue in Laravel?

Driver: SQS
Jobra in Laravel dies with this message:

App\Listeners\NestedJob\RenderContent has been attempted too many times or run too long. The job may have previously timed out.

/**
     * @var string
     */
    public $queue = 'cc-staging-worker-queue';

    /**
     * @var int
     */
    public $tries = 1;

    /**
     * @var int
     */
    public $timeout = 5000000;


5000000 seconds is almost 60 days, that is, it does not fail by timeout, and there are no other error messages.
Joba uses traits: InteractsWithQueue, Queueable;
Implementation: ShouldQueue

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question