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

27
testdata/run_once_timeout/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
version: '3'
silent: true
tasks:
default:
# Without failfast the run waits for `owner` anyway, hiding what is tested.
failfast: true
deps: [owner, joiner]
# Holds the shared task far longer than `joiner` waits, so `joiner` reaches
# the deduplication path while it is still running.
owner:
cmds:
- task: shared
joiner:
cmds:
- sleep 0.2
- task: shared
timeout: 500ms
- echo "should not be reached"
shared:
run: once
cmds:
- sleep 10