Batch of Batches
#45001
Replies: 1 comment
-
Currently this can be achieved doing something like Bus::batch([
fn() => Log::info('a'),
fn() => Log::info('b'),
])->finally(function () {
Bus::batch([
fn() => Log::info('c'),
fn() => Log::info('d'),
])->finally(function () {
Bus::batch([
fn() => Log::info('e'),
fn() => Log::info('f'),
])->dispatch();
})->dispatch();
})->dispatch(); But this is not an appeasing solution... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to create / handle a Chain of Batches in Laravel?
Example:
In a web application I'm working on I have multiple Batches, each containing a set of data they process and store back. Following batches need to use this data. Thus a Chain of grouped jobs (Batches)
Beta Was this translation helpful? Give feedback.
All reactions