public function CronJob::unlock in Ultimate Cron 8.2
Unlock job.
Parameters
string $lock_id: The lock id to unlock.
bool $manual: Whether or not this is a manual unlock.
Overrides CronJobInterface::unlock
1 call to CronJob::unlock()
- CronJob::run in src/
Entity/ CronJob.php - Run job.
File
- src/
Entity/ CronJob.php, line 406
Class
- CronJob
- Class for handling cron jobs.
Namespace
Drupal\ultimate_cron\EntityCode
public function unlock($lock_id = NULL, $manual = FALSE) {
$result = NULL;
if (!$lock_id) {
$lock_id = $this
->isLocked();
}
if ($lock_id) {
$result = $this
->getPlugin('launcher')
->unlock($lock_id, $manual);
}
$this
->sendMessage('unlock', array(
'lock_id' => $lock_id,
));
return $result;
}