v1
rerun_requests 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
- bitfount.cache.types.rerun_requests.v1.migrations - No inbound migration — this is the base version.
- bitfount.cache.types.rerun_requests.v1.model - Pydantic record for the
rerun_requestscache table (v1). - bitfount.cache.types.rerun_requests.v1.schema - SQLAlchemy ORM for the
rerun_requestscache table (v1). - bitfount.cache.types.rerun_requests.v1.store - Requests for lineages to be rerun when next appropriate (v1).
Classes
Record
class Record(**data: Any):One request for lineages to be rerun when next appropriate.
Attributes
id: The request's own identifier, generated when it is recorded.requested_at: When the request was made, timezone-aware UTC.scope: The registered rerun scope naming which lineages it covers (seebitfount.flows.dag.rerun_requests).lineage_key: The one lineage it covers, orNonefor every lineage in scope.reason: Why it was made, for support; not read by the scheduler.lineages_due: How many lineages it covered when it was made.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
id : str
- static
lineage_key : str | None
- static
lineages_due : int
- static
model_config
- static
reason : str
- static
requested_at : datetime.datetime
- static
scope : str
- static
tags : dict[str, typing.Any] | None
ORM
class ORM(**kwargs):SQLAlchemy model for the rerun_requests cache table.
One row per request for lineages to be rerun when next appropriate. The latest row for a scope and lineage key anchors that request's cooldown; the rows made since the cron occurrence are what the sweep and setup judge.
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.
Ancestors
Variables
-
id : sqlalchemy.orm.base.Mapped[str]
-
lineage_key : sqlalchemy.orm.base.Mapped[str | None]
-
lineages_due : sqlalchemy.orm.base.Mapped[int]
-
reason : sqlalchemy.orm.base.Mapped[str]
-
requested_at : sqlalchemy.orm.base.Mapped[str]
-
scope : sqlalchemy.orm.base.Mapped[str]
-
tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]