class UpdatedBatchJobCounts (View source)

Properties

int $pendingJobs

The number of pending jobs remaining for the batch.

int $failedJobs

The number of failed jobs that belong to the batch.

Methods

__construct(int $pendingJobs = 0, int $failedJobs = 0)

Create a new batch job counts object.

bool
allJobsHaveRanExactlyOnce()

Determine if all jobs have run exactly once.

Details

__construct(int $pendingJobs = 0, int $failedJobs = 0)

Create a new batch job counts object.

Parameters

int $pendingJobs
int $failedJobs

bool allJobsHaveRanExactlyOnce()

Determine if all jobs have run exactly once.

Return Value

bool