leases
etl_craft.execution.leases ¶
Process identities and heartbeat scopes for run and attempt supervisors.
RunSupervisor
dataclass
¶
A run's exact owner and the cancellation shared by its wave tasks.
process_start ¶
Read a process birth identity, including the boot identity on Linux.
owner_id ¶
Identify this supervisor's host, pid, birth time and random instance suffix.
run_owner ¶
Return the supervisor in this execution scope for this exact run.
run_cancel ¶
Return the supervising run's cancellation, or a standalone task event.
heartbeat ¶
Renew a lease while its process runs; stop work when ownership cannot be renewed.
supervise_run ¶
Claim and heartbeat one run; no other supervisor can adopt its live or expired lease.