You are here

public function SerialLauncher::unlock in Ultimate Cron 8.2

Unlock a lock.

Parameters

string $lock_id: The lock id to unlock.

bool $manual: Whether this is a manual unlock or not.

Return value

bool TRUE on successful unlock.

Overrides LauncherInterface::unlock

File

src/Plugin/ultimate_cron/Launcher/SerialLauncher.php, line 158

Class

SerialLauncher
Ultimate Cron launcher plugin class.

Namespace

Drupal\ultimate_cron\Plugin\ultimate_cron\Launcher

Code

public function unlock($lock_id, $manual = FALSE) {
  list($launcher, $lock_id) = explode('-', $lock_id, 2);
  $lock = \Drupal::service('ultimate_cron.lock');
  return $lock
    ->unlock($lock_id);
}