Skip to content

Prevent CheckTickets sometimes stucked in while loop #22

@dtangdev

Description

@dtangdev
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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions