fix: retry notifications

This commit is contained in:
Andras Bacsai 2023-09-08 16:53:19 +02:00
parent c472042a94
commit 03d9f93397
10 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class DeploymentFailed extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public Application $application; public Application $application;
public string $deployment_uuid; public string $deployment_uuid;
public ?ApplicationPreview $preview = null; public ?ApplicationPreview $preview = null;

View File

@ -16,6 +16,7 @@ class DeploymentSuccess extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public Application $application; public Application $application;
public string $deployment_uuid; public string $deployment_uuid;
public ApplicationPreview|null $preview = null; public ApplicationPreview|null $preview = null;

View File

@ -14,6 +14,7 @@ class StatusChanged extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public $application; public $application;
public string $application_name; public string $application_name;

View File

@ -14,6 +14,7 @@ class BackupFailed extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public string $name; public string $name;
public string $frequency; public string $frequency;

View File

@ -14,6 +14,7 @@ class BackupSuccess extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public string $name; public string $name;
public string $frequency; public string $frequency;

View File

@ -12,6 +12,7 @@ class GeneralNotification extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public function __construct(public string $message) public function __construct(public string $message)
{ {
} }

View File

@ -15,6 +15,7 @@ class NotReachable extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public function __construct(public Server $server) public function __construct(public Server $server)
{ {

View File

@ -14,6 +14,7 @@ class Test extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public function __construct(public string|null $emails = null) public function __construct(public string|null $emails = null)
{ {
} }

View File

@ -15,6 +15,7 @@ class InvitationLink extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public function via(): array public function via(): array
{ {
return [TransactionalEmailChannel::class]; return [TransactionalEmailChannel::class];

View File

@ -12,6 +12,7 @@ class Test extends Notification implements ShouldQueue
{ {
use Queueable; use Queueable;
public $tries = 5;
public function __construct(public string $emails) public function __construct(public string $emails)
{ {
} }