Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent CheckTickets sometimes stucked in while loop #22

Open
dtangdev opened this issue Nov 15, 2023 · 0 comments
Open

Prevent CheckTickets sometimes stucked in while loop #22

dtangdev opened this issue Nov 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dtangdev
Copy link
Collaborator

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

@dtangdev dtangdev added the enhancement New feature or request label Nov 15, 2023
@JamesHemery JamesHemery self-assigned this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants