We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec69211 commit 39a8453Copy full SHA for 39a8453
src/SendJob.php
@@ -14,6 +14,12 @@ class SendJob implements ShouldQueue
14
{
15
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
16
17
+ // Set the maximum number of retries
18
+ public $tries = 2;
19
+
20
+ // Set the retry delay (in seconds)
21
+ public $retryAfter = 120;
22
23
public function __construct(
24
private string $url,
25
private string $message,
@@ -33,6 +39,8 @@ public function handle(): void
33
39
$httpClientOption['proxy'] = $this->proxy;
34
40
}
35
41
42
+ $httpClientOption['timeout'] = 5;
43
36
44
$params = [
37
45
'text' => $this->message,
38
46
'chat_id' => $this->chatId,
0 commit comments