MCPcopy Create free account
hub / github.com/taskforcesh/bullmq / getJobCountByTypes

Method getJobCountByTypes

php/src/Queue.php:228–232  ·  view source on GitHub ↗

* Get the total count of jobs in a specific state. * * @param string ...$types The job states to count (waiting, active, delayed, completed, failed, paused, prioritized, waiting-children) * @return int The total count */

(string ...$types)

Source from the content-addressed store, hash-verified

226 * @return int The total count
227 */
228 public function getJobCountByTypes(string ...$types): int
229 {
230 $counts = $this->scripts->getCounts($types);
231 return array_sum($counts);
232 }
233
234 /**
235 * Get job counts for all states.

Callers 15

clean.test.tsFile · 0.45
events.test.tsFile · 0.45
getters.test.tsFile · 0.45
job.test.tsFile · 0.45
queue.test.tsFile · 0.45

Calls 1

getCountsMethod · 0.65

Tested by 1