Allow Bus::batch to be chained #50839
Answered
by
ahinkle
EternalPlanemo
asked this question in
Ideas
-
The documentation has a snippet for a chained batch, but as far as I'm aware this has never been a feature. https://laravel.com/docs/10.x/queues#chains-and-batches use App\Jobs\FlushPodcastCache;
use App\Jobs\ReleasePodcast;
use App\Jobs\SendPodcastReleaseNotification;
use Illuminate\Support\Facades\Bus;
Bus::chain([
new FlushPodcastCache,
Bus::batch([
new ReleasePodcast(1),
new ReleasePodcast(2),
]),
Bus::batch([
new SendPodcastReleaseNotification(1),
new SendPodcastReleaseNotification(2),
]),
])->dispatch(); Batch does not have a ::chain() method |
Beta Was this translation helpful? Give feedback.
Answered by
ahinkle
Mar 30, 2024
Replies: 1 comment
-
It was introduced in v10.31. #48633 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
EternalPlanemo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was introduced in v10.31. #48633