feat: command timeouts (#2898)

This commit is contained in:
Valentin Maerten
2026-08-11 22:09:25 +02:00
committed by GitHub
parent 993508c782
commit 37898d9102
21 changed files with 830 additions and 50 deletions

26
testdata/dep_timeout/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
version: '3'
silent: true
tasks:
timeout-exceeded:
deps:
- task: slow
timeout: 300ms
cmds:
- echo "should not be reached"
timeout-not-exceeded:
deps:
- task: quick
timeout: 5s
cmds:
- echo "reached the end"
slow:
cmds:
- sleep 10
quick:
cmds:
- echo "quick"