You are here

public function LockInterface::isLocked in Ultimate Cron 8.2

Check if lock is taken.

Parameters

string $job_id: Name of the lock.

boolean $ignore_expiration: Ignore expiration, just check if it's present. Used for retrieving the lock id of an expired lock.

Return value

mixed The lock id if found, otherwise FALSE.

1 method overrides LockInterface::isLocked()
Lock::isLocked in src/Lock/Lock.php
Check if lock is taken.

File

src/Lock/LockInterface.php, line 74

Class

LockInterface
Class for handling lock functions.

Namespace

Drupal\ultimate_cron\Lock

Code

public function isLocked($job_id, $ignore_expiration = FALSE);