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

Cast json decoded failed_job_ids to array in DatabaseBatchRepository::toBatch #46329

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

naciriii
Copy link
Contributor

@naciriii naciriii commented Mar 2, 2023

closes #46327

This PR fixes the referenced issue with array casting the json decoded array from failed_job_ids column in job_batches table.
In case if failed_job_ids column has empty or null value for whatever reason (interruption in the issue case, explicit update etc...) it should return an empty array instead of null so the batch won't fail with the exception thrown in the referenced issue.

Kindly

@taylorotwell taylorotwell merged commit 8ba64e6 into laravel:10.x Mar 2, 2023
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.

TypeError: Illuminate\Bus\BatchFactory::make(): Argument #7 ($failedJobIds) must be of type array, null given
2 participants