You are here

public function UltimateCronBackgroundProcessLegacyLauncher::getProgress in Ultimate Cron 7.2

Implementation of getProgress().

Parameters

UltimateCronJob $job: Job to get progress for.

Return value

float Progress for the job.

Overrides UltimateCronLauncher::getProgress

File

plugins/ultimate_cron/launcher/background_process_legacy.class.php, line 626
Background Process 1.x launcher for Ultimate Cron.

Class

UltimateCronBackgroundProcessLegacyLauncher
Ultimate Cron launcher plugin class.

Code

public function getProgress($job) {
  $handle = 'uc-' . $job->name;
  $progress = progress_get_progress($handle);
  return $progress ? $progress->progress : FALSE;
}