PrunableBatchRepository
interface PrunableBatchRepository implements BatchRepository
Methods
Retrieve information about an existing 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.
Details
in
BatchRepository at line 16
array
get(int $limit, mixed $before)
Retrieve a list of batches.
in
BatchRepository at line 21
Batch|null
find(int|string $batchId)
Retrieve information about an existing batch.
in
BatchRepository at line 26
Batch
store(PendingBatch $batch)
Store a new pending batch.
in
BatchRepository at line 31
void
incrementTotalJobs(int|string $batchId, int $amount)
Increment the total number of jobs within the batch.
in
BatchRepository at line 36
UpdatedBatchJobCounts|null
decrementPendingJobs(int|string $batchId, string $jobId)
Decrement the total number of pending jobs for the batch.
in
BatchRepository at line 41
UpdatedBatchJobCounts|null
incrementFailedJobs(int|string $batchId, string $jobId)
Increment the total number of failed jobs for the batch.
in
BatchRepository at line 46
void
markAsFinished(int|string $batchId)
Mark the batch that has the given ID as finished.
in
BatchRepository at line 51
void
cancel(int|string $batchId)
Cancel the batch that has the given ID.
in
BatchRepository at line 56
void
delete(int|string $batchId)
Delete the batch that has the given ID.
in
BatchRepository at line 66
mixed
transaction(Closure $callback)
Execute the given Closure within a storage specific transaction.
in
BatchRepository at line 71
void
rollBack()
Rollback the last database transaction for the connection.
at line 14
int
prune(DateTimeInterface $before)
Prune all of the entries older than the given date.