TECHNOLOGY

Metaflow catch: continued execution does not turn a failed candidate into a valid score

In this article
THE QUICK TAKE

Catch enables a downstream decision after failure; the join must still distinguish absent results, valid scores and eligibility.

A green flow with missing evidence

A search over model configurations permits individual candidates to fail. The final join completes, but its comparison table replaces every missing score with a numeric default. A failed evaluation now appears indistinguishable from a completed evaluation with that value. The flow’s operational completion has obscured the experiment’s evidence quality.

Represent candidate status explicitly. A completed low score, a model that could not load and an evaluator that raised an exception describe different observations. Combining them changes the population being compared and makes later interpretation unreliable.

Catch changes control flow

The catch reference explains that the decorator allows execution to continue and can store the caught exception in a named artifact. It also warns that expected successful-path artifacts can be missing. Continuation is therefore an invitation for downstream handling, not a replacement result.

Choose a failure artifact that the join checks before accessing candidate outputs. If exception storage is omitted, design another unambiguous status contract rather than relying on a default score to encode both failure and success.

Account for retry exhaustion

The failure handling guide describes combining retry with catch. A candidate may reach the join after attempts have been exhausted rather than after useful model work. This distinction affects both resource analysis and the interpretation of evaluation coverage.

Retain the candidate’s configuration identity, failure stage and eligibility status. Benchmark task selection remains important: the surviving candidates should be compared on the intended task population, not on whatever subset happened to finish.

Preserve denominators in aggregation

The flow construction guide explains foreach tasks and their join inputs. Use those incoming results to construct separate counts for attempted, completed and eligible candidates. State the denominator used by any aggregate score or success fraction.

Averages computed only over successful tasks can be useful, but their meaning should be stated. They do not establish performance across every requested candidate. This resembles stream outcome denominators, where excluding failed observations silently can overstate apparent success.

Make continuation scientifically useful

For a concrete diagnostic, arrange for a known candidate to fail before producing its metric. Confirm that the join records the failure, avoids reading absent artifacts and leaves the candidate out of ranking through an explicit eligibility decision.

The final table should explain whether the experiment completed with full coverage, partial coverage or no usable candidates. A workflow can continue gracefully while still concluding that its available evidence is insufficient for selecting a model.

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