Skip to main content
Cloacina Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Workflows

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.

Run Modes

Library (Embedded)

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

Library Tutorials →

Service (Server/Daemon)

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

Service Tutorials →

Quick Navigation

Section Description
Tutorials Step-by-step learning guides
How-to Guides Task-oriented recipes
Reference API and configuration lookup
Explanation Architecture and design decisions