yaml-task

command
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

yaml-task — YAML workflow as one task

One YAML file is one durable-go task. Each steps[].id is a RunStep. No if/else, loops, or parallel DSL — just a list of commands.

Re-running with the same taskID and runID skips already-completed steps.

Run

From the repo root:

go run ./examples/yaml-task/

Crash after step 2, then resume:

CRASH_AFTER=2 go run ./examples/yaml-task/
go run ./examples/yaml-task/

On the second run, clone and build replay from the journal; only test executes.

Reset

rm -rf examples/yaml-task/.data/

Documentation

Overview

Package main runs a YAML workflow file as one durable-go task. Each steps[].id is a RunStep; the YAML is the task spec (passed as input).

go run ./examples/yaml-task/
CRASH_AFTER=2 go run ./examples/yaml-task/   # crash after step 2, then re-run to resume

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL