TECHNOLOGY

A Dagster blocking check needs an emitted failure result

In this article
THE QUICK TAKE

Verify check selection and result emission as well as blocking=True; absence of a failing result is not evidence that validation passed.

Put the quality gate before report generation

An asset holds extracted document passages, and its downstream asset generates a cited report. A check should reject passages without source identifiers. Dagster’s asset-check guide states that checks are nonblocking by default. Define whether this check supplies advisory information or must prevent the downstream report from using unacceptable input. The existence of a check definition alone does not establish that prevention.

Combine blocking with the intended severity

The check API reference defines blocking behavior for failed results at ERROR severity. WARN communicates a potential issue and has different gating implications. Choose severity according to the consumer’s actual requirement: a missing optional annotation can be advisory, while absent citation identifiers may make the report unusable. Avoid presenting every failed check in the UI as proof that downstream execution must have stopped.

Do not treat missing output as a failed check

The current AssetCheckSpec reference explicitly distinguishes an absent emitted result: downstream execution proceeds and a warning is logged. A conditional branch that forgets to emit its check result can therefore weaken the intended gate without producing the failed ERROR result the gate relies on. Make every selected validation path produce its intended result or fail explicitly under a documented execution policy. Missing validation evidence should remain visible to operators.

Align selected checks and emitted results

The subsetting guide uses selected check keys to determine computations and explicitly yields expected results. Review the selection used by the real job, including jobs deliberately defined without checks. A broad check catalog cannot protect an execution that omits the required checks. For multi-asset work, inspect responsibility within the same computation as well as dependencies between separate steps.

Inspect validation as its own outcome

For a deliberately invalid passage set, inspect check selection, emitted failure, severity and downstream execution. Task contracts state why source identifiers are mandatory; tool observations retain the gate’s actual result. Successful materialization of upstream passages is separate from their acceptance for reporting. This makes a missing or advisory check distinguishable from a validation pass, and gives a concrete explanation when a report was generated despite unacceptable source data.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles