Fixes for ninja mailer

This commit is contained in:
David Bomba 2023-01-29 18:29:35 +11:00
parent 60472bf151
commit 9c66c3b741
2 changed files with 9 additions and 6 deletions

View File

@ -207,11 +207,11 @@ class NinjaMailerJob implements ShouldQueue
} }
}
/* Releasing immediately does not add in the backoff */ /* Releasing immediately does not add in the backoff */
$this->release($this->backoff()[$this->attempts()-1]); $this->release($this->backoff()[$this->attempts()-1]);
}
/*Clean up mailers*/ /*Clean up mailers*/
$this->cleanUpMailers(); $this->cleanUpMailers();
@ -649,7 +649,8 @@ class NinjaMailerJob implements ShouldQueue
public function failed($exception = null) public function failed($exception = null)
{ {
if($exception)
nlog($exception->getMessage());
} }
} }

View File

@ -141,10 +141,12 @@ class EmailMailer implements ShouldQueue
$this->release($this->backoff()[$this->attempts()-1]); $this->release($this->backoff()[$this->attempts()-1]);
$message = null; $message = null;
$this->cleanUpMailers();
} }
$this->cleanUpMailers();
} }
/** /**