You are here

public function UltimateCronBackgroundProcessLegacyLauncher::setProgress in Ultimate Cron 7.2

Implementation of setProgress().

Parameters

UltimateCronJob $job: Job to set progress for.

float $progress: Progress (0-1).

Overrides UltimateCronLauncher::setProgress

File

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

Class

UltimateCronBackgroundProcessLegacyLauncher
Ultimate Cron launcher plugin class.

Code

public function setProgress($job, $progress) {
  $handle = 'uc-' . $job->name;
  return progress_set_progress($handle, '', $progress);
}