is_locked

lockmgr.lockmgr.is_locked(name: Union[lockmgr.models.Lock, str]) → bool[source]

Cleans expired locks, then returns True if the given lock key name exists, otherwise False