Bug: Don't retry Apprise in case of a timeout (#2680)

Co-authored-by: Alex Justesen <alexjustesen@users.noreply.github.com>
This commit is contained in:
Sven van Ginkel
2026-02-03 21:56:29 +01:00
committed by GitHub
parent 1ada95c4f9
commit 405c1a5127
3 changed files with 21 additions and 1 deletions
@@ -10,6 +10,16 @@ class SpeedtestNotification extends Notification implements ShouldQueue
{
use Queueable;
/**
* The number of times the job may be attempted.
* Set to 1 to prevent duplicate notifications.
* Apprise may take >30s to respond (timeout), but still processes successfully.
* See #2653 and #2615
*
* @var int
*/
public $tries = 1;
public function __construct(
public string $title,
public string $body,
@@ -10,6 +10,16 @@ class TestNotification extends Notification implements ShouldQueue
{
use Queueable;
/**
* The number of times the job may be attempted.
* Set to 1 to prevent duplicate notifications.
* Apprise may take >30s to respond (timeout), but still processes successfully.
* See #2653 and #2615
*
* @var int
*/
public $tries = 1;
/**
* Get the notification's delivery channels.
*
+1 -1
View File
@@ -38,7 +38,7 @@ class AppriseChannel
]);
try {
$request = Http::timeout(30)
$request = Http::timeout(60)
->withHeaders([
'Content-Type' => 'application/json',
]);