﻿# Sacred run status: a stale RUNNING record can outlive the process after a hard failure

Interpret Sacred run outcomes using observer events and heartbeat freshness, distinguishing handled exceptions from machine loss that prevents a final status update.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-sacred-heartbeat-hard-failure-terminal-state/
Language: en

## Distinguish recorded state from current process liveness

A GPU workstation loses power during an experiment. Its Sacred record still shows RUNNING when the researcher checks the database later. The [experiment lifecycle guide](https://sacred.readthedocs.io/en/latest/experiment.html) explains that hard failures can prevent a final failure event from being reported. The surviving label is the last recorded observation, not a direct measurement of a live process. Treat it as evidence to investigate rather than proof that the job continues somewhere in the cluster.

## Separate handled failures from missing terminal events

An exception or an ordinary interruption can be caught by the experiment machinery and reported with an appropriate outcome. Power loss or a terminated host may remove that opportunity altogether. These situations have different evidence trails even if neither produces a usable final model. Preserve the distinction in experiment summaries: a failed run with a reported exception explains something different from a run whose observer stopped receiving events without a final outcome.

## Inspect heartbeat freshness in context

The [collected-information guide](https://sacred.readthedocs.io/en/latest/collected_information.html) describes periodic heartbeat reporting with live information. Compare the last heartbeat with the expected reporting behavior and the worker's state. A stale heartbeat is a useful signal, but network interruption or an unavailable observer can also disrupt reporting. Correlate with scheduler or host evidence instead of classifying every silence as a specific model error. The goal is an explainable liveness assessment, not an invented terminal diagnosis.

## Account for the observer transport

The [observer documentation](https://sacred.readthedocs.io/en/latest/observers.html) describes different storage backends and a queue wrapper for event handling. Where events are buffered, distinguish experiment execution time from their arrival at the destination. Inspect what the chosen observer actually persisted before relying on a dashboard status for automated selection. Successful computation and successful reporting are related operations, but neither implies the other completed, especially during external storage or network failures.

## Reconcile status and artifact evidence explicitly

For a small test, compare an ordinary raised exception with a deliberately interrupted worker in a controlled environment. Inspect status, last heartbeat and expected checkpoint availability separately. Related guides cover [terminal request consistency](/journal/provider-terminal-request-record-consistency/) and [artifact release manifests](/journal/tokenizer-artifact-release-manifest/). Preserve uncertainty where evidence is incomplete. A usable intermediate checkpoint can survive a missing terminal event, while a completed tracking record still does not establish that a chosen downstream evaluation succeeded.
