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 infinite loop when forgetting failed jobs #1429

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

JackWH
Copy link
Contributor

@JackWH JackWH commented Apr 25, 2024

PR #1409 added an --all flag to delete all failed jobs.

When testing this with my application, for whatever reason $repository->totalFailed() didn't match the count of $repository->getFailed(). This caused an infinite loop, which is fixed by this PR.

@taylorotwell taylorotwell merged commit c918b06 into laravel:5.x Apr 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants