The batch will be continued anyway because of the next condition if (!$queue->getCountToProcess()) { continue; } The newsletter entity will be marked as sent (plus other stuff related to finished sending) after the loop in $this->endSending.
The batch will be continued anyway because of the next condition if (!$queue->getCountToProcess()) { continue; } The newsletter entity will be marked as sent (plus other stuff related to finished sending) after the loop in $this->endSending.