Skip to content

lock

django_spire.contrib.sync.database.lock

SyncLock

Bases: Protocol

acquire

Source code in django_spire/contrib/sync/database/lock.py
def acquire(self, node_id: str) -> str: ...

hold

Source code in django_spire/contrib/sync/database/lock.py
def hold(self, node_id: str) -> None: ...

release

Source code in django_spire/contrib/sync/database/lock.py
def release(self, session_id: str, status: SyncStatus, result: DatabaseResult | None = None) -> None: ...

update_phase

Source code in django_spire/contrib/sync/database/lock.py
def update_phase(self, session_id: str, phase: SyncPhase) -> None: ...