Workflows
The workflow system is Cloacina’s core orchestration engine. It schedules and executes directed acyclic graphs (DAGs) of tasks with automatic retry, conditional execution, cron scheduling, and persistent state.
Use Cloacina as a Rust library embedded directly in your application. Define tasks with #[task], compose them into workflows with #[workflow], and execute them with DefaultRunner. Best for:
- Applications that need built-in workflow orchestration
- Microservices with internal task pipelines
- Development and testing
Deploy Cloacina as a standalone service (cloacinactl serve or cloacinactl daemon). Upload packaged workflows via HTTP API, manage tenants, and execute via REST. Best for:
- Multi-tenant SaaS platforms
- Centralized workflow management
- Production deployments with monitoring
| Section | Description |
|---|---|
| Tutorials | Step-by-step learning guides |
| How-to Guides | Task-oriented recipes |
| Reference | API and configuration lookup |
| Explanation | Architecture and design decisions |