Add backoff property to SendMessageToDiscordJob.php

This commit is contained in:
Andras Bacsai
2024-04-30 15:06:49 +02:00
parent c6a7fd405b
commit 70e1ec2cd2

View File

@@ -20,11 +20,12 @@ class SendMessageToDiscordJob implements ShouldQueue, ShouldBeEncrypted
* @var int * @var int
*/ */
public $tries = 5; public $tries = 5;
public $backoff = 10;
/** /**
* The maximum number of unhandled exceptions to allow before failing. * The maximum number of unhandled exceptions to allow before failing.
*/ */
public int $maxExceptions = 3; public int $maxExceptions = 5;
public function __construct( public function __construct(
public string $text, public string $text,