Skip to content

Commit

Permalink
Added ability to set notifcation tries and timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
therealartz committed Nov 12, 2018
1 parent 621d91d commit 559d4ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Illuminate/Notifications/SendQueuedNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ class SendQueuedNotifications implements ShouldQueue
*/
public $channels;

/**
* The number of times the job may be attempted.
*
* @var int
*/
public $tries;

/**
* The number of seconds the job can run before timing out.
*
* @var int
*/
public $timeout;

/**
* Create a new job instance.
*
Expand All @@ -44,6 +58,8 @@ public function __construct($notifiables, $notification, array $channels = null)
$this->channels = $channels;
$this->notifiables = $notifiables;
$this->notification = $notification;
$this->tries = property_exists($notification, 'tries') ? $notification->tries : null;
$this->timeout = property_exists($notification, 'timeout') ? $notification->timeout : null;
}

/**
Expand Down

0 comments on commit 559d4ed

Please sign in to comment.