interface PrunableBatchRepository implements BatchRepository (View source)
| Batch[] | get(int $limit, mixed $before)
Retrieve a list of batches. | from BatchRepository |
| Batch|null | find(string $batchId)
Retrieve information about an existing batch. | from BatchRepository |
| Batch | store(PendingBatch $batch)
Store a new pending batch. | from BatchRepository |
| void | incrementTotalJobs(string $batchId, int $amount)
Increment the total number of jobs within the batch. | from BatchRepository |
| UpdatedBatchJobCounts | decrementPendingJobs(string $batchId, string $jobId)
Decrement the total number of pending jobs for the batch. | from BatchRepository |
| UpdatedBatchJobCounts | incrementFailedJobs(string $batchId, string $jobId)
Increment the total number of failed jobs for the batch. | from BatchRepository |
| void | markAsFinished(string $batchId)
Mark the batch that has the given ID as finished. | from BatchRepository |
| void | cancel(string $batchId)
Cancel the batch that has the given ID. | from BatchRepository |
| void | delete(string $batchId)
Delete the batch that has the given ID. | from BatchRepository |
| mixed | transaction(Closure $callback)
Execute the given Closure within a storage specific transaction. | from BatchRepository |
| void | rollBack()
Rollback the last database transaction for the connection. | from BatchRepository |
| int | prune(DateTimeInterface $before)
Prune all of the entries older than the given date. |
Retrieve a list of batches.
Retrieve information about an existing batch.
Store a new pending batch.
Increment the total number of jobs within the batch.
Decrement the total number of pending jobs for the batch.
Increment the total number of failed jobs for the batch.
Mark the batch that has the given ID as finished.
Cancel the batch that has the given ID.
Delete the batch that has the given ID.
Execute the given Closure within a storage specific transaction.
Rollback the last database transaction for the connection.
Prune all of the entries older than the given date.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Bus/PrunableBatchRepository.html