Blocking Task?

Is there a way to have a "blocking" task so that it waits for it to complete first? (see the first task infra/up below)
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

includes:
pkg/rest:
dir: ../pkg/rest
taskfile: ../pkg/rest
pkg/broker:
dir: ../pkg/broker
taskfile: ../pkg/broker
pkg/webrtc:
dir: ../pkg/webrtc
taskfile: ../pkg/webrtc/taskfile.yaml
apps/spa:
dir: ../apps/spa
taskfile: ../apps/spa/taskfile.yaml
tasks:
infra-up:
cmds:
- make infra/up
status:
- curl -s http://localhost:15672
stack:
deps:
- infra-up # wait for this task <---------
- pkg/rest:run
- pkg/broker:run
- pkg/webrtc:run
- apps/spa:run
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

includes:
pkg/rest:
dir: ../pkg/rest
taskfile: ../pkg/rest
pkg/broker:
dir: ../pkg/broker
taskfile: ../pkg/broker
pkg/webrtc:
dir: ../pkg/webrtc
taskfile: ../pkg/webrtc/taskfile.yaml
apps/spa:
dir: ../apps/spa
taskfile: ../apps/spa/taskfile.yaml
tasks:
infra-up:
cmds:
- make infra/up
status:
- curl -s http://localhost:15672
stack:
deps:
- infra-up # wait for this task <---------
- pkg/rest:run
- pkg/broker:run
- pkg/webrtc:run
- apps/spa:run
1 Reply
vmaerten
vmaerten5mo ago
GitHub
Blocking/waiting on a task? · go-task task · Discussion #1749
Is there a way to have a "blocking" task so that it waits for it to complete first? (see the first task infra/up below) # yaml-language-server: $schema=https://taskfile.dev/schema.json ve...
Want results from more Discord servers?
Add your server