Expand description
A run’s parameters (decision 138): from the JSON a trigger gives to the form they are stored and sent in, which is how outputs are stored (dates and tuples tagged), and back to JSON for showing them.
Structs§
- Misfit
- A value that doesn’t fit its type.
whydoesn’t quote the value;pathnames where.
Enums§
- Step
- A step into a value: a field or key, or a list’s index.
Constants§
- MAX_
PARAMS_ BYTES - At most this many bytes of a run’s parameters as JSON, defaults included (decision 135).
Functions§
- duration_
micros - An ISO 8601 duration (
P1DT2H,PT0.5S,-PT1M,P1W) in whole microseconds, a day being 24 hours and a week 7 days (decision 139). - escape_
tags - Every dict shaped like a tag escaped, at any depth (a model’s or
Any’s data). - escaped
- A dict stored escaped when its only key would read as a tag (B66).
- nul_at
- Where a text or a key containing NUL is (no store keeps one: Postgres refuses it in JSON, the database layer replaces it (decision 114), and the runner refuses to decode it).
- shown
- Stored parameters as JSON, for showing them: dates and times as ISO 8601 text, a duration
as an ISO 8601 duration, a tuple as a list, an escaped dict unwrapped (what
--paramstakes). - to_
reported - A value reported from outside Python (
schedr task-ctx resource set), in the form it is stored in: asto_stored, and a dataclass gives every field, since nothing fills in its defaults before a command reads the value (t"{cluster.value.region}"). - to_
stored - Values given as JSON (
{"day": "2026-10-01"}), already checked against the schema, in the form they are stored in, by the declared type ({"day": {"$date": "2026-10-01"}}).