mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 04:10:25 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -38,7 +38,7 @@ class AppriseChannel
|
||||
]);
|
||||
|
||||
try {
|
||||
$request = Http::timeout(30)
|
||||
$request = Http::timeout(60)
|
||||
->withHeaders([
|
||||
'Content-Type' => 'application/json',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user