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