You are here

public function BackendInterface::countJobs in Advanced Queue 8

Gets an estimated number of jobs in the queue.

The accuracy of this number might vary. On a busy system with a large number of consumers and jobs, the result might only be valid for a fraction of a second and not provide an accurate representation.

Return value

array The estimated number of jobs, grouped per job status. Only the estimate for the 'queued' status is guaranteed to be present, other estimates (processing/success/failed) depend on backend capabilities and configuration.

1 method overrides BackendInterface::countJobs()
Database::countJobs in src/Plugin/AdvancedQueue/Backend/Database.php
Gets an estimated number of jobs in the queue.

File

src/Plugin/AdvancedQueue/Backend/BackendInterface.php, line 65

Class

BackendInterface
Provides the interface for queue backends.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\Backend

Code

public function countJobs();