You are here

public function LauncherBase::getProgress in Ultimate Cron 8.2

Default implementation of getProgress().

Parameters

\Drupal\ultimate_cron\CronJobInterface $job: Job to get progress for.

Return value

float Progress for the job.

Overrides LauncherInterface::getProgress

File

src/Launcher/LauncherBase.php, line 111

Class

LauncherBase
Abstract class for Ultimate Cron launchers.

Namespace

Drupal\ultimate_cron\Launcher

Code

public function getProgress(CronJobInterface $job) {
  return \Drupal::service('ultimate_cron.progress')
    ->getProgress($job
    ->id());
}