Skip to content

Commit

Permalink
config/main: ignoring failed queue store; setting queue attempts to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Aug 14, 2023
1 parent 158d3df commit d7ec947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FILESYSTEM_DISK=local
QUEUE_CONNECTION=redis
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_FAILED_DRIVER=null

MEMCACHED_HOST=127.0.0.1

Expand Down
2 changes: 2 additions & 0 deletions app/Jobs/EmailDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class EmailDispatcher implements ShouldQueue, ShouldBeUnique

private ?string $language;

public $tries = 3;

public $backoff = 3;

public function __construct(string $fromEmail, string $toEmail, ?string $sender = '', ?string $receiver = '', ?string $subject = '', ?string $template = '', ?string $language = '', ?array $attachments = [])
Expand Down

0 comments on commit d7ec947

Please sign in to comment.