prefect.locking.memory
MemoryLockManager
aacquire_lock
aacquire_lock
key
: Unique identifier for the transaction record.holder
: Unique identifier for the holder of the lock.acquire_timeout
: Max number of seconds to wait for the record to become
available if it is locked while attempting to acquire a lock. Pass 0
to attempt to acquire a lock without waiting. Blocks indefinitely by
default.hold_timeout
: Max number of seconds to hold the lock for. Holds the lock
indefinitely by default.acquire_lock
acquire_lock
key
: Unique identifier for the transaction record.holder
: Unique identifier for the holder of the lock.acquire_timeout
: Max number of seconds to wait for the record to become
available if it is locked while attempting to acquire a lock. Pass 0
to attempt to acquire a lock without waiting. Blocks indefinitely by
default.hold_timeout
: Max number of seconds to hold the lock for. Holds the lock
indefinitely by default.await_for_lock
await_for_lock
key
: Unique identifier for the transaction record.timeout
: Maximum time to wait. None means to wait indefinitely.is_lock_holder
is_lock_holder
key
: Unique identifier for the transaction record.holder
: Unique identifier for the holder of the lock.is_locked
is_locked
key
: Unique identifier for the transaction record.release_lock
release_lock
key
: Unique identifier for the transaction record.holder
: Unique identifier for the holder of the lock. Must match the
holder provided when acquiring the lock.wait_for_lock
wait_for_lock
key
: Unique identifier for the transaction record.timeout
: Maximum time to wait. None means to wait indefinitely.