public function UltimateCronBackgroundProcessLegacyLauncher::isLocked in Ultimate Cron 7.2
Check locked state.
Because Background Process doesn't support a unique id per process, we return the second callback argument from the process, where we previously stored the unique lock id.
Overrides UltimateCronLauncher::isLocked
File
- plugins/
ultimate_cron/ launcher/ background_process_legacy.class.php, line 288 - Background Process 1.x launcher for Ultimate Cron.
Class
- UltimateCronBackgroundProcessLegacyLauncher
- Ultimate Cron launcher plugin class.
Code
public function isLocked($job) {
$process = background_process_get_process('uc-' . $job->name);
if ($process) {
return $process->args[1];
}
return FALSE;
}