liveness
liveness
#
Which processes are alive: each holds a flock the kernel drops on any kind of death.
Liveness
dataclass
#
This process's hold on a scratch: a locked file named by its pid and a boot nonce.
Source code in capturegraph-lib/capturegraph/recipes/scratch/store/liveness.py
name
property
#
This owner's name, as used for its lock file and live directory.
acquire(locks_dir)
classmethod
#
Create and lock a fresh liveness file under locks_dir.
Source code in capturegraph-lib/capturegraph/recipes/scratch/store/liveness.py
lock_is_free(path)
#
Whether nobody holds the lock file at path (an absent file counts as free).
Source code in capturegraph-lib/capturegraph/recipes/scratch/store/liveness.py
owner_alive(locks_dir, pid, boot)
#
Whether the owner (pid, boot) still runs and still holds its liveness lock.