Examples
Use these examples as copy-paste starting points for common Dagu workflow patterns.
Workflow Basics
- Basic Examples - Sequential steps, parallel child runs, multi-command steps, pinned tools, and dependency modes.
- Control Flow - Conditions, repetition, routing, nested workflows, and worker placement.
- Reliability - Continue-on behavior, retries, backoff, and lifecycle handlers.
Data & Runtime
- Data & Variables - Environment variables, dotenv files, secrets, parameters, outputs, runtime context, and artifacts.
- Scripts & Runtime - Shell scripts, Python scripts, working directories, shell selection, and reproducible runtimes.
Integrations & Operations
- Actions & Integrations - Custom actions, containers, Kubernetes, SSH, HTTP, jq, archive extraction, and mail.
- Scheduling & Queues - Schedules, time zones, queue assignment, global queues, and notifications.
- Operations - Retention, logs, timeouts, monitoring, tracing, execution control, and production configuration.
AI
- Chat & LLM - Chat completions, DAG-level LLM configuration, sessions, and extended thinking.
- Harness Run - Run Codex, OpenCode, and Pi as workflow steps.
