Skip to content

FAQ

Short answers to what people ask when they evaluate cairn. Each one links to the page that shows it.

No. cairn setup starts an engine on your own machine with SQLite, and Docker Compose runs a server on one host. There is a Helm chart if you do want Kubernetes.

Not to start: the Quickstart needs neither. A pipeline that calls a model needs an OpenAI-compatible endpoint, set with an API key or a base URL. The example’s tiny-finetune pipeline fine-tunes a small model on CPU with the train extra, and the GPU guide uses an EC2 GPU instance of your own.

Three, chosen with CAIRN_RUNTIME: the in-process runtime (the default), DBOS and Temporal. Under Temporal, a pipeline with a task: leg or a finalizer: step is refused at launch, because that runtime doesn’t run them yet. Data flows run on a separate dataflow engine: the built-in one, Metaflow or SkyPilot.

No published number measures this: the benchmark times the Quickstart’s whole path, not a gate on its own. A gate does no work, so it has no run and starts no engine, and a paused pipeline is stored, not held in memory. A person gate also costs the wait until someone decides.

Yes. Wrap it as an operator (cairn pack new operator scaffolds one) or as a flow stage, and install the package where the engine runs. A pipeline or flow then names it as it would a built-in one, and the same gates and record apply.

Pipeline records and runs are in your own database, which CAIRN_STORAGE selects: SQLite (~/.cairn/dev.db under cairn setup) or Postgres. A server with it unset keeps runs in memory and loses them on restart, and puts pipeline records in ~/.cairn/cairn.db. The local artifact store keeps its files under ~/.cairn/artifacts (CAIRN_ARTIFACTS_DIR), and the hash-chained audit log is a file, ./audit.jsonl by default, which the engine writes to only when the profile binds audit.sink.

What happens if the process crashes mid-run?

Section titled “What happens if the process crashes mid-run?”

After a restart on the same store, finished legs keep their results and don’t run again, and a gate that was waiting is still waiting. For a leg caught in flight, a read-only task leg or a finalizer: runs again, any other task leg waits for a person, as does a template leg under the in-process runtime unless it’s on a live remote job, and a flow leg is re-attached to its engine (or, with no engine handle yet, waits for a person) and is never resubmitted. A local job on the built-in engine dies with the process, so there the flow leg settles failed and no later leg runs apart from finally: steps, and the crash tests check that outcome by killing a real server.

How does it differ from Airflow and MLflow?

Section titled “How does it differ from Airflow and MLflow?”

cairn is a control plane for the work behind AI models: it decides when each step may run, holds the spend to a budget, pauses for a data check or a person, and records what happened. How cairn compares sets that beside Airflow and MLflow.

It isn’t declared production-ready: cairn is a 0.x release in early access, and the API and commands may still change between releases. Every pull request runs CI: the test suites, plus end-to-end cells on SQLite and Postgres under the in-process and DBOS runtimes, including a server killed mid-run. Known limits: Temporal refuses task legs and finalizers and isn’t in those cells, budget-cap overshoot isn’t measured yet, and the audit log is off unless the profile binds audit.sink.

The cairndev package (the engine, the cairn command, the API server, the client and the builtin operator packs) is Apache 2.0. Packs and operators released as separate wheels each state their own licence. The web console and the operator packs for GPU providers and managed training are part of cairn-platform, a separate product whose source isn’t public.