Skip to content
vxvx
GitHubBlueskydev.toRSS

Timeouts

A hung task is killed and reported as a timeout, not left to stall the run.

A task killed after its timeout and reported as timed out.

A test that waits on a socket forever holds the whole pipeline hostage. Give a task a limit and vx kills it when the limit passes, then marks it failed with the reason.

Set it per task with exec.timeout, for the workspace with timeout, or for one run with --timeout or VX_TASK_TIMEOUT. The task’s own limit always wins.

// config

// packages/api/vx.config.ts
import { defineProject } from '@vzn/vx/config'

export default defineProject({
  tasks: {
    test: { exec: { command: 'vitest run', timeout: 120_000 } },
  },
})
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.