# How to quickly check how many times a TorchTrainer job has restarted?

**URL:** <https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424>\
**Category:** Ray Train\
**Created:** [December 29, 2025, 9:24pm UTC](https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424 "2025-12-29T21:24:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![psnilesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/psnilesh/32/8424_2.png) [@psnilesh](https://discuss.ray.io/u/psnilesh)\
**Post date:** [December 29, 2025, 9:24pm UTC](https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424/1 "2025-12-29T21:24:51Z")

</div>

Following the guide, [Handling Failures and Node Preemption — Ray 2.53.0](https://docs.ray.io/en/latest/train/user-guides/fault-tolerance.html)

I have setup worker level fault tolerance like so,

```auto
trainer = ray.train.torch.TorchTrainer(
    train_fn_per_worker,
    scaling_config=ray.train.ScalingConfig(num_workers=4),
    run_config=ray.train.RunConfig(
        # [3] Enable worker-level fault tolerance to gracefully handle
        # Train worker failures.
        failure_config=ray.train.FailureConfig(max_failures=3),
    ),
)

```

I was wondering what was a convenient way to look up how many worker faults have happened in a running Ray job using cli or dashboard. I could see the fault count in the `ray job logs` it would help to know if there’s an easier way to checking this without grepping through entire driver logs.

---

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [December 29, 2025, 9:25pm UTC](https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424/2 "2025-12-29T21:25:16Z")

</div>

There is no direct CLI command or dashboard field that shows the current worker fault count for a running Ray Train job. The Ray Dashboard provides job and worker status, logs, and error messages, but does not expose a real-time counter for worker restarts or faults; you would still need to check logs for detailed fault/retry information. The dashboard’s Jobs view and Train dashboard can help you identify failed attempts and worker restarts, but not as a simple counter—each retry is shown as a new attempt, and you can view the history of attempts and their status details there, which indirectly reflects the number of faults encountered during the run ([Ray Train Fault Tolerance Guide](https://docs.ray.io/en/latest/train/user-guides/fault-tolerance.html), [Train Dashboard Monitoring](https://docs.anyscale.com/monitoring/workload-debugging/train-dashboard.md)).

For a more granular view, you can inspect the “history of Train run attempts” in the Train dashboard, where each attempt corresponds to a retry after a worker failure. This lets you count the number of retries (faults) without grepping logs, but there is no single “fault count” field exposed via CLI or dashboard at this time ([Train Dashboard Monitoring](https://docs.anyscale.com/monitoring/workload-debugging/train-dashboard.md)). Would you like more detail on how to use the dashboard to view this information?

Sources:

- [Train Dashboard Monitoring](https://docs.anyscale.com/monitoring/workload-debugging/train-dashboard.md)
- [Ray Train Fault Tolerance Guide](https://docs.ray.io/en/latest/train/user-guides/fault-tolerance.html)

Hint: Mention @RunLLM in the post for followups.

---

<div class="post-metadata">

**Author:** ![psnilesh](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/psnilesh/32/8424_2.png) [@psnilesh](https://discuss.ray.io/u/psnilesh)\
**Post date:** [December 29, 2025, 10:26pm UTC](https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424/3 "2025-12-29T22:26:21Z")

</div>

@RunLLM Do you have any ideas on how this can be supported? I would love to have this available in the ray dashboard.

---

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [December 29, 2025, 10:26pm UTC](https://discuss.ray.io/t/how-to-quickly-check-how-many-times-a-torchtrainer-job-has-restarted/23424/4 "2025-12-29T22:26:40Z")

</div>

Currently, the Ray Dashboard does not provide a built-in field or metric for displaying the number of worker faults or restarts in real time for a running job. To support this, Ray would need to expose a new metric (e.g., “worker\_fault\_count”) at the job or run level, and the dashboard would need to surface this metric in the job or Train run details view. This could be implemented by tracking the number of failed worker attempts and displaying it alongside other run metadata ([Train Dashboard Monitoring](https://docs.anyscale.com/monitoring/workload-debugging/train-dashboard.md)).

You can suggest this feature by opening a GitHub issue or feature request in the Ray repository, describing the need for a visible worker fault/retry count in the dashboard. This aligns with ongoing efforts to improve observability and expose more internal metrics in Ray ([Ray Observability RFC](https://github.com/ray-project/ray/issues/20496)). Would you like more detail on how to propose this or on possible implementation approaches?

Sources:

- [Train Dashboard Monitoring](https://docs.anyscale.com/monitoring/workload-debugging/train-dashboard.md)
- [Ray Observability RFC](https://github.com/ray-project/ray/issues/20496)

Hint: Mention @RunLLM in the post for followups.
