mateothegreat
mateothegreat
Explore posts from servers
TTask
Created by mateothegreat on 8/10/2024 in #help
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
3 replies