Disable marking subscribers as processed on error

[MAILPOET-4200]
This commit is contained in:
Jan Lysý
2022-04-19 13:09:46 +02:00
committed by Veljko V
parent 4733bcd03f
commit 1310e5afec
2 changed files with 3 additions and 3 deletions

View File

@ -387,9 +387,7 @@ class SendingQueue {
$error = $sendResult['error'];
assert($error instanceof MailerError);
$this->errorHandler->processError($error, $sendingTask, $preparedSubscribersIds, $preparedSubscribers);
}
// update processed/to process list
if (!$sendingTask->updateProcessedSubscribers($preparedSubscribersIds)) {
} elseif (!$sendingTask->updateProcessedSubscribers($preparedSubscribersIds)) { // update processed/to process list
MailerLog::processError(
'processed_list_update',
sprintf('QUEUE-%d-PROCESSED-LIST-UPDATE', $sendingTask->id),