1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

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

@ -206,11 +206,11 @@ class NinjaMailerJob implements ShouldQueue
app('sentry')->captureException($e);
}
}
/* Releasing immediately does not add in the backoff */
$this->release($this->backoff()[$this->attempts()-1]);
/* Releasing immediately does not add in the backoff */
$this->release($this->backoff()[$this->attempts()-1]);
}
/*Clean up mailers*/
$this->cleanUpMailers();
@ -649,7 +649,8 @@ class NinjaMailerJob implements ShouldQueue
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]);
$message = null;
$this->cleanUpMailers();
}
$this->cleanUpMailers();
}
/**