How can I create delays between failed Queued Job attempts in Laravel?

前端 未结 3 2015
野性不改
野性不改 2021-01-04 13:38

I have a queued job in Laravel that fails from time to time because of an external API failing due to high load. The problem is that my choices appear to be to have the Lara

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 14:26

    Laravel 5.8+

    /**
     * The number of seconds to wait before retrying the job.
     *
     * @var int
     */
    public $retryAfter = 3;
    

提交回复
热议问题