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:
26
testdata/dep_timeout/Taskfile.yml
vendored
Normal file
26
testdata/dep_timeout/Taskfile.yml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user