while ($ticketStorage->count() > 0) {
$tickets = $ticketStorage->retrieve();
$ticketIds = $tickets->pluck('id')->toArray();
$response = $expoNotificationsService->receipts($ticketIds);
if ($response->isEmpty()) {
break;
}
$this->check($ticketStorage, $tickets, $response);
}
When ->receipts() has an error, the job hangs, because it still stucks in the while loop