Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(bus): allow adding multiple jobs to chain #55668

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

Merged
merged 1 commit into from
May 7, 2025

Conversation

dallyger
Copy link
Contributor

@dallyger dallyger commented May 7, 2025

Allow inserting multiple jobs to the same dispatched chain by passing a list of
jobs to prependToChain() and appendToChain().

prependToChain() reverses the collection before inserting the jobs one
by one to ensure that the first job is processed before the second one.

Backwards compatibility should be given, due to the current implementation
wrapping the job in an array and therefore, enforcing a single job instance.

`prependToChain()` reverses the collection before inserting the jobs one
by one to ensure that the first job is processed before the second one.
@taylorotwell taylorotwell merged commit 0900dc5 into laravel:12.x May 7, 2025
119 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.

2 participants