locks
etl_craft.engine.locks ¶
The named cross-process locks held in the Engine DB.
MIGRATE
module-attribute
¶
Serializes init-db and migrate, so two runs never apply the same file twice.
CLONE
module-attribute
¶
Serializes cloning, so two runs finishing together never write the same mirror at once.
EngineLock
dataclass
¶
A lock every process reaching the same Engine DB contends for.
hold ¶
Hold the lock for the with body; 0 waits indefinitely.
target ¶
Serialize target mutations and hash-contract publication across processes.
advisory_key ¶
Hash an exact lock namespace to PostgreSQL's signed 64-bit advisory key.