model
Pydantic record for the lock_fences cache table (v1).
Classes
LockFenceRecord
class LockFenceRecord(**data: Any):The latest holder of one keyed lock, and the token it was given.
Attributes
fence_key: The lock fenced, e.g. a lineage limit name ormetadata:<task_hash>.token: The fence's token, one per acquisition; only the holder of the highest token may write.holder_run_id: The run giventoken, when it named one.acquired_at: Whentokenwas issued, ISO 8601.tags: Arbitrary flat metadata.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Variables
- static
acquired_at : str | None
- static
fence_key : str
- static
holder_run_id : str | None
- static
model_config
- static
tags : dict[str, typing.Any] | None
- static
token : int