public static function CronJob::getProgressMultiple in Ultimate Cron 8.2
Get multiple job progresses.
Parameters
array $jobs: Jobs to get progress for.
Return value
array Progress of jobs, keyed by job name.
Overrides CronJobInterface::getProgressMultiple
File
- src/
Entity/ CronJob.php, line 646
Class
- CronJob
- Class for handling cron jobs.
Namespace
Drupal\ultimate_cron\EntityCode
public static function getProgressMultiple($jobs) {
$launchers = array();
foreach ($jobs as $job) {
$launchers[$job
->getPlugin('launcher')->name][$job
->id()] = $job;
}
$progresses = array();
foreach ($launchers as $launcher => $jobs) {
$progresses += ultimate_cron_plugin_load('launcher', $launcher)
->getProgressMultiple($jobs);
}
return $progresses;
}