Skip to content

Commit

Permalink
add progress callback
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 19, 2023
1 parent 8138b39 commit f67793b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,9 @@ To dispatch a batch of jobs, you should use the `batch` method of the `Bus` faca
new ImportCsv(201, 300),
new ImportCsv(301, 400),
new ImportCsv(401, 500),
])->then(function (Batch $batch) {
])->progress(function (Batch $batch) {
// A single job has completed successfully...
})->then(function (Batch $batch) {
// All jobs completed successfully...
})->catch(function (Batch $batch, Throwable $e) {
// First batch job failure detected...
Expand Down

0 comments on commit f67793b

Please sign in to comment.