Skip to content

angee.integrate.locks

Live task locks for integration bridge jobs.

bridge_lock_key

python
def bridge_lock_key(bridge: Any) -> LockKey

Return the shared task lock key for one bridge row.

bridge_advisory_lock

python
@contextmanager
def bridge_advisory_lock(bridge: Any) -> Iterator[bool]

Try to hold the live sync lock for bridge during a task.

bridge_is_locked

python
def bridge_is_locked(bridge: Any) -> bool

Return whether the live sync lock for bridge is currently held.

Released under the AGPL-3.0 License.