Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Capabilities

What the package does today when the rivet it runs (0.32.2 or newer) lacks a member of the scheduler contract.

Works today / needs a newer rivet

ADR-0039 describes several things no released binary emits yet. The package reads what rivet’s output holds and takes a recorded fallback for the rest: every task’s XCom carries degraded: [<key>, ...]; the task log names each key in words, and the rivet.result record at DEBUG carries the list. Nothing is guessed without a key.

How it detects. An output member (class, failures[], stop_reason) is detected by its presence in the output itself. The version is used for one thing only: the minimum-version refusal (rivet 0.32.2; every flag the package passes exists on every subcommand it passes it to there, so no flag is probed).

“Needs” names the ADR-0039 section; none of it is in a released rivet at this package’s date.

KeyMissing in rivet 0.32.2What the package does todayNeeds (ADR-0039)
per_unit_errorfailures[] and per_export[].errorwhen several units of one process failed, each carries the process-level objectD2/D3, rivet >= unreleased
stop_reasonCDC stop_reason and tables[]stop_reason is null: a max_events stop cannot be told from caught_upD4, rivet >= unreleased

Five more keys record something the worker or one output lacks, not the binary’s version:

KeyWhat is missingWhat the package does
stderr_tempa state directory or stderr_dir on the workerwrites rivet’s stdout and stderr to a private per-user directory under the temp directory (see Secrets); a pod loses them with its disk
crashed_ledgera readable and writable crashed-budget ledgerwithout a state directory: a crash is retried only within the first crashed_retries tries of the task instance; with a ledger that cannot be read or written: no crash retry at all
result_malformedan error object or a result entry with the contract’s keys and types; also a stderr line that starts with { and is not JSON, or a last stderr line longer than the 1 MiB read, or a summary file of an exit-0 process that is not a JSON objecta malformed error object is ignored and the task is classified by the exit-code table; a value of the wrong type is null; a status outside the contract’s words counts as failed
result_missingthe --summary-output file of a process that exited 0rivet could not write it (it only warns); the units are built as if the binary had no summary flag: one unit per requested export or table, status from the exit
exit_zero_failed_unita non-zero exit when the summary reports a failed unitthe task fails, classified by the worst failed unit (data_integrity > internal > refusal > schema_drift > retryable > generic, ADR-0039 D2)

Not detectable, so not recorded per task:

  • A child process killed by a signal is not reported as crashed by today’s binary: the parent exits 1 (or 2, by a text match) and the task follows that exit. A kill of the rivet process the operator started is seen directly and is crashed today.
  • There is no RIVET_STATE_FOREIGN refusal yet. The package’s own marker check (below) is the only guard against a wrong state directory.
  • rivet does not yet warn about a relative cdc.checkpoint under PostgreSQL state.

The list lives in one place in the code, airflow_provider_rivet/capabilities.py (DEGRADATIONS), and a test fails when a key has no row in this table.