TofuPilotTofuPilot

Timeout

Prevent phases from running indefinitely with configurable timeouts.

You can prevent phases from running indefinitely by setting a timeout. By default, TofuPilot sets a 5s timeout phases and 5 min on phases involving Operator UI.

phases:
  - name: Run Long Test
    module: tests
    timeout: 60s

You can use human-readable format with the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), and combine them like 1h30m or 2m500ms.

TofuPilot terminates phases that exceed their timeout and logs a warning at 75% of the timeout duration, regardless of which runtime you use.

The Python worker process is terminated when a phase exceeds its timeout.

The executable worker process is terminated when a command exceeds its timeout.

The UI phase is terminated when it exceeds its timeout, even if waiting for operator input.

How is this guide?

On this page