liveBook · Manning

Failure

As explained in Distributed Machine Learning Patterns

An event in which a component, operation, or workflow step does not complete as intended.

A failure occurs when a workflow component does not complete as intended. In machine-learning workflows, its impact depends on dependencies, available resources, persisted data, and downstream steps. Simple sequential pipelines can retry the failed step, but branching workflows may require decisions about which results remain usable and whether users can receive timely aggregated results. section 6.3

Handle a failed workflow step by following an operational diagnosis:

  • Identify the root cause, such as a lost network connection, unavailable data, preempted workers, or insufficient memory. section 6.3.2
  • Classify the failure as temporary or permanent before retrying; retries are ineffective when the underlying shortage or dependency loss persists. section 6.3.2
  • Check whether required outputs still exist. Persisted data can allow training to restart, while data lost from memory requires data ingestion again. section 6.3.2
  • Verify sufficient computational resources before rerunning training after worker preemption or an out-of-memory failure. section 6.3.2
  • Record runtime metadata, including data availability and memory or CPU usage, so later failures can be interpreted rather than blindly retried. section 6.3.2

Parallel model-training workflow

Three training steps produce models with different tagging accuracies. A selection step chooses the best two models meeting a 90% threshold, two serving steps generate results, and an aggregation step presents them to users. If two training steps fail, rerunning everything wastes completed work; recovery instead depends on the causes, retained outputs, and remaining resources. section 6.3

How Distributed Machine Learning Patterns covers it

How deep it goes
Distinguishes temporary from permanent failures and gives diagnostic recovery steps, but does not specify an implementation framework.
Examples
Uses lost database connectivity, preempted workers, memory exhaustion, missing in-memory data, and competing model-training branches.
What it assumes
Assumes familiarity with workflow steps and model training while explaining dependency availability, resource limits, and failure classification.
What you can do after
Diagnose/debug with runtime metadata, classify failure causes, and choose between retrying a step or restarting dependencies.
How it connects
Connects failures with workflow orchestration, model training, data ingestion, computational resources, retrying, and metadata.

Also explained in

Compare how 12 books explain failure →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.