bria 0.1.4

Multi-pipeline job orchestrator
Documentation
# http source -> file sink: task exits non-zero (failure path test)
[global]
tmp_dir = "/tmp/bria"

[global.log]
level = "info"
format = "json"

[global.state]
backend = "memory"

[server]
enabled = true
bind = "0.0.0.0"
port = 4000
prefix = "v1"
api_key = "${BRIA_API_KEY}"

[[sources]]
id = "api"
type = "http"
path = "jobs"
id_field = "id"
max_body_bytes = 1048576

[[tasks]]
id = "failer"
driver = "local"
cmd = "sh"
args = ["-c", "echo 'this task fails on purpose' >&2; exit 42"]
timeout_secs = 10

[tasks.stdout]
mode = "capture"
max_bytes = 4096

[tasks.stderr]
mode = "capture"
max_bytes = 4096

[[sinks]]
id = "file-out"
type = "file"
path = "/tmp/bria/results.jsonl"

[[pipelines]]
id = "http-nonzero-pipeline"
source = "api"
sinks = ["file-out"]

[[pipelines.steps]]
id = "run"
type = "process"
task = "failer"