PrunableBatchRepository
interface PrunableBatchRepository implements BatchRepository (View source)
Methods
void
incrementTotalJobs(string $batchId, int $amount)
Increment the total number of jobs within the batch.
from
BatchRepository
decrementPendingJobs(string $batchId, string $jobId)
Decrement the total number of pending jobs for the batch.
from
BatchRepository
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
mixed
from
BatchRepository
int
Details
void
incrementTotalJobs(string $batchId, int $amount)
Increment the total number of jobs within the batch.
UpdatedBatchJobCounts
decrementPendingJobs(string $batchId, string $jobId)
Decrement the total number of pending jobs for the batch.
UpdatedBatchJobCounts
incrementFailedJobs(string $batchId, string $jobId)
Increment the total number of failed jobs for the batch.
mixed
transaction(Closure $callback)
Execute the given Closure within a storage specific transaction.