mirror of
https://github.com/go-task/task.git
synced 2026-08-29 10:08:27 +02:00
feat: command timeouts (#2898)
This commit is contained in:
12
testdata/deferred/Taskfile.yml
vendored
12
testdata/deferred/Taskfile.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user