Skip to main content

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 or metadata:<task_hash>.
  • token: The fence's token, one per acquisition; only the holder of the highest token may write.
  • holder_run_id: The run given token, when it named one.
  • acquired_at: When token was 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 token : int