Skip to content

feat: command timeouts#2898

Open
vmaerten wants to merge 1 commit into
mainfrom
feat/command-timeout
Open

feat: command timeouts#2898
vmaerten wants to merge 1 commit into
mainfrom
feat/command-timeout

Conversation

@vmaerten

@vmaerten vmaerten commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

Add command-level timeout support to prevent commands from hanging indefinitely in task pipelines.

Closes #1569

This reimplements (and rebases onto current main) the work started in #2474, which was abandoned by its original author.

Usage

version: '3'

tasks:
  deploy:
    cmds:
      - cmd: npm run build
        timeout: 5m
      - cmd: ./deploy.sh
        timeout: 30m

Commands exceeding their timeout are terminated:

task: Failed to run task "deploy": task: [deploy] command timeout exceeded (5m): context deadline exceeded

@vmaerten vmaerten marked this pull request as ready for review June 30, 2026 20:23
Add a per-command `timeout` option that terminates a command once it
exceeds the given duration, preventing commands from hanging indefinitely
in a pipeline. Uses Go duration syntax (e.g. 30s, 5m, 1h30m) and applies
to both shell commands and task calls.

Closes #1569
@vmaerten vmaerten force-pushed the feat/command-timeout branch from 0abc24c to 24bbb61 Compare June 30, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeout for running tasks

1 participant