* 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)
| 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. |