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

View File

@@ -27,3 +27,15 @@ tasks:
child:
cmds:
- cmd: echo "child {{.VAR1}}"
parent-with-timeout:
cmds:
- defer:
task: slow-cleanup
silent: true
timeout: 100ms
- echo 'parent completed'
slow-cleanup:
cmds:
- sleep 1 && echo 'cleanup completed'