Skip to main content

v1

dataset_relay_grants record, v1 — canonical aliases.

Consumers and the record registry import from here and never touch the inner module names, mirroring flow_specs/v1/__init__.py.

Module​

Submodules​

Classes​

Record​

class Record(**data: Any):

The grant a metadata run presents to relay its progress events.

The file-metadata and scan-metadata runtimes execute in subprocesses Prefect launches, and hand their progress events to the pod control server rather than sending them themselves. A preprocessing pass belongs to a datasource and to no project, so the grant is keyed on the datasource's task hash alone. It is honoured for imaging dataset events only, and redeems no credentials.

Attributes

  • task_hash: The (pod, datasource) task hash the grant is scoped to.
  • nonce: The secret the run presents.
  • issued_at: When the pod wrote this grant.
  • expires_at: When the pod control server must stop honouring it.
  • 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 model_config
  • static task_hash : str

ORM​

class ORM(**kwargs):

SQLAlchemy model for the dataset_relay_grants cache table.

One row per configured datasource, kept by the pod and read by the metadata runs for that datasource.

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Variables​

  • expires_at : sqlalchemy.orm.base.Mapped[str]
  • issued_at : sqlalchemy.orm.base.Mapped[str]
  • nonce : sqlalchemy.orm.base.Mapped[str]
  • tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]
  • task_hash : sqlalchemy.orm.base.Mapped[str]