Migrate from Airflow to Kestra

Move your DAGs to Kestra flows. The Python, SQL and dbt inside run as they are, and Airflow keeps running alongside until the last DAG moves.

Why teams leave Airflow

  • Every DAG is a Python program

    Airflow runs the file to know what the DAG is, so only engineers who know Airflow can own one. SQL, dbt and shell work ends up wrapped in PythonOperator.

  • A platform to keep running

    You run the scheduler, webserver, workers, triggerer and a metadata database, and every provider shares one Python environment.

  • One deployment per team

    One Airflow instance gives teams little isolation from each other, so a second team usually gets a second deployment.

Apache Airflow is complex and has been challenging to manage, with significant operational overhead.
Senior engineering manager, Apple's ML team

Airflow vs Kestra

AirflowKestra
Who writes workflows Python engineers who know AirflowAnyone who can write YAML; Python, SQL, dbt and shell run as tasks
The plan Discovered by running PythonDeclared; the topology is visible before any run
Scaling Parse time and database load grow with the DAG countStored as YAML, so the flow count adds no parse time
Several teams Usually one deployment per teamNamespaces, with RBAC, SSO and tenants
Integrations Providers installed on every worker2,900+ plugins, versioned apart from the core
Best fit Python engineers in one codebaseSeveral teams, and work beyond Python
  • Airflow

    Who writes workflows
    Python engineers who know Airflow
    The plan
    Discovered by running Python
    Scaling
    Parse time and database load grow with the DAG count
    Several teams
    Usually one deployment per team
    Integrations
    Providers installed on every worker
    Best fit
    Python engineers in one codebase

Translate, backfill, compare

The Airflow UI next to Kestra

An Airflow DAG that fetches who is in space and runs one task per astronaut, and the same pipeline in Kestra. The fetch code is unchanged. The XCom push becomes Kestra.outputs() and .expand() becomes a Loop.

Migration plan

List what you run

Export every DAG with its schedule and last run, group the ones linked by Datasets, and retire the DAGs with no successful run in 90 days.

Airflow REST API
  1. Every DAG listed with its last run
  2. Dataset-linked DAGs move together
  3. DAGs idle for 90 days paused and left behind

Run both until the last DAG moves

Pause each moved DAG in Airflow and keep it as a fallback. DAGs that haven't moved keep running in Airflow, and Kestra triggers them through the REST API.

LoopUntil task
  1. orders_daily runs in Kestra, DAG paused
  2. usage_extract runs in Kestra, DAG paused
  3. orders_ingest still in Airflow, triggered from Kestra

Switch Airflow off

When no DAG is left unpaused, export the run history, keep the metadata database as a read-only archive and uninstall the services.

Kestra API reference
  1. Every pipeline runs in Kestra
  2. Run history exported, database read-only
  3. Airflow uninstalled

Before you move, read the whitepaper.

Where the Airflow model works against growing teams, how declarative orchestration compares, and a decision tree for when to move.

Cover of the Kestra Airflow whitepaper

Airflow to Kestra mapping

DAGs and tasks
DAG ( dag_id ) Flow ( id + namespace )
Task / operator Task ( type: io.kestra.plugin... )
default_args A flow-level retry , flow variables , task timeout
DAG Factory YAML ( dag-factory ) Flow YAML; io.kestra.plugin.core.flow.Dag for dependencies lists
Airflow REST API Kestra REST API, Terraform provider, CLI, Python/JS/Go SDKs
Scheduling and events
schedule / schedule_interval / Timetable Schedule trigger with cron , timezone , when
catchup recoverMissedSchedules: ALL | LAST | NONE on the Schedule trigger
start_date Not needed; the Schedule starts when the flow is saved
Backfill Backfill action on the Schedule trigger (UI or API)
Dataset / Asset Flow trigger on the upstream execution; Assets catalog with lineage and freshness triggers
Sensor Polling triggers ( S3 , SQS , Kafka , Postgres …), realtime triggers, Pause or Sleep tasks
ExternalTaskSensor Flow trigger with states: [SUCCESS] on the upstream flow
TriggerDagRunOperator Subflow task
Data and configuration
XCom ( xcom_push / xcom_pull ) Task outputs , read as {{ outputs.<task_id>.<key> }}
Variable Flow variables , KV Store ( {{ kv('KEY') }} ), namespace variables
Connection {{ secret('NAME') }} plus plugin properties ( url , username …)
Param inputs with type , defaults , validation
Control flow
TaskGroup / SubDAG Subflow for reuse; Sequential / Parallel for grouping
BranchPythonOperator / ShortCircuitOperator If / Switch
Dynamic task mapping ( .expand() ) Loop with values and concurrencyLimit
retries , retry_delay , retry_exponential_backoff retry with type: constant ( interval ), exponential or random , and maxAttempts
on_failure_callback errors block (task or flow level), afterExecution , finally
trigger_rule allowFailure , allowWarning , runIf on tasks; transmitFailed on Subflow
depends_on_past No direct equivalent
Runtime and platform
Pools / priority_weight Flow concurrency limits; Worker Groups for routing
Executor (Celery, Kubernetes) Task runners per task: Process , Docker , Kubernetes, cloud batch and VMs
RBAC, SSO, multi-tenancy Tenants, action-based RBAC, SSO/OIDC/SCIM

Where to run the flows

The same flows run on all three editions.

Kestra Core

Open Source

Apache 2.0, like Airflow. A complete replacement for a single-team Airflow instance: flows, triggers, Loop, Subflow, retries and script tasks.

Get started

Kestra Enterprise

Self-hosted, hybrid or air-gapped. Tenants, Worker Groups, Policies, the Assets catalog and high availability on Kafka and Elasticsearch.

Talk to sales
Compare editions

Questions from Airflow teams

SOC 2 GDPR

SOC 2 Type 2 and GDPR, independently audited. The report is available on request.

Security overview