
Kestra and Apache Airflow both schedule and run data pipelines, and the difference between them is how a pipeline is written. Airflow Dags are defined entirely in Python, in Python files that Airflow loads, as Airflow's Dag documentation describes. Kestra flows are defined declaratively in YAML or built in the No Code editor, and each flow is a file that must have an identifier, a namespace and a list of tasks (Kestra's flow documentation).
Moving a Dag to Kestra puts the pipeline's shape in a file anyone on the team can read, while the code that does the work stays in Python, SQL or Shell. Each Kestra script task runs in its own Docker container by default, so one task's libraries stay out of another's, and Realtime Triggers start a flow the moment a message arrives on a queue or stream. Both projects are open source, Airflow under Apache 2.0 and Kestra under Apache 2.0, with a separate commercial Enterprise Edition. The move changes how pipelines are written and run, and the license stays the same.
Airflow's own definition of a Dag is "a model that encapsulates everything needed to execute a workflow", and an engineer writes it with the whole of Python to hand. That also puts the Dags in one environment. Airflow's best practices say that by default its environment is "just a single set of Python dependencies and single Python environment", and that Airflow's own dependencies sometimes conflict, so tasks share one Python environment by default unless a Dag isolates them. To give a task its own libraries, a Dag uses the PythonVirtualenvOperator, the ExternalPythonOperator, or the Docker and Kubernetes decorators that run a function in a container.
Airflow suits teams that write Python. Its documentation says so plainly: "If you prefer clicking over coding, Airflow might not be the best fit."
Kestra keeps the flow apart from the code its tasks run. The YAML flow sets the pipeline's shape, and the work runs in script tasks, with dedicated plugins for Python, R, Julia, Ruby, Node.js, Powershell and Shell. Those script tasks run in individual Docker containers by default, or in a local process when you choose it (Kestra's scripts documentation). Kestra's README lists "hundreds of plugins built in" for databases, cloud storage and APIs, so a query against a database is a task with its configuration in the flow rather than code you maintain.
A YAML flow reads as a list of named tasks, so an analytics engineer or a DevOps engineer can follow what a pipeline does without tracing Python. Kestra also has a No Code editor "for building flows and dashboards visually without writing YAML", and its UI shows each flow in a code editor and a topology view, with logs and a Gantt view of every execution (Kestra's UI documentation). Flows can be pushed to a Git branch directly from Kestra, so a change made in the editor still goes through version control and CI/CD.
For local work, Airflow's quick start runs airflow standalone, on a SQLite database, which starts the scheduler, Dag processor, triggerer and API server together, and the docs say to use it "to develop Dags locally, not in production". Kestra starts locally with one docker run command (Kestra's quickstart). In the editor, Kestra's VS Code extension works against your own Kestra instance, "so autocompletion and structural validation reflect the plugin versions actually installed", and it calls the instance's validate endpoint on each edit.
Airflow describes itself as "a platform for orchestrating batch workflows". Airflow has offered event-driven scheduling since version 3.0, through an AssetWatcher that monitors an external event source such as a message queue (Airflow's event-driven scheduling documentation). A sensor that waits for upstream data takes up a full worker slot for the entire time it runs, even when idle, unless it defers and hands the wait to the triggerer (Airflow's deferrable operators).
In Kestra, the Schedule trigger runs a flow on a cron schedule, with optional calendar conditions; the Flow trigger runs a flow when one or more upstream flows complete in a matching state; the Webhook trigger runs a flow in response to an inbound HTTP request (Kestra's trigger documentation). Realtime Triggers on a streaming source start a flow the moment an event arrives, with millisecond latency; most other triggers poll at a fixed interval, so a polling trigger starts its flow seconds or minutes after new data appears (Kestra's Realtime Trigger documentation). The streaming sources include Kafka, AWS SQS, Google Pub/Sub, and a row added, changed or deleted in Postgres, MySQL or SQL Server.
Airflow comes configured with the LocalExecutor by default, which runs tasks inside the scheduler process. To scale out, Airflow sends tasks to a central queue where remote workers pull them, through the CeleryExecutor, the KubernetesExecutor or one of the other remote executors in its executor documentation.
Kestra splits its server into roles. The executor drives each execution, workers run tasks and triggers, and the scheduler evaluates triggers and starts executions. In a distributed deployment, "each role runs as its own independently scaled process", and every role is stateless and talks to the others through a queue, which a PostgreSQL or MySQL database holds in the setup every edition supports (Kestra's architecture documentation).
| Airflow | Kestra | |
|---|---|---|
| Pipeline | defined entirely in Python | defined declaratively in YAML or built in the No Code editor |
| Script tasks | one Python environment by default | script tasks run in individual Docker containers by default |
| Events | event-driven scheduling since version 3.0, through an AssetWatcher | Realtime Triggers on a streaming source start a flow the moment an event arrives, with millisecond latency; most other triggers poll at a fixed interval |
| Local work | airflow standalone, on a SQLite database | one docker run command |
| License | Apache 2.0 | Apache 2.0, with a separate commercial Enterprise Edition |
Plan the move as an engineering project with a set order. List the Dags, and classify each by operational overhead, criticality and dependency surface. Translate the non-critical ones first, mapping each Airflow operator to a Kestra plugin. Then run both side by side. Kestra's Airflow plugin can "trigger Airflow DAG runs from Kestra flows and optionally wait for completion", so a Kestra flow can start the Dags not yet moved, and we recommend checking each moved pipeline against rollback criteria before the next one moves. Move the business-critical pipelines last, once the parallel runs pass.
On a Kestra implementation, we translate legacy scripts or Airflow Dags into declarative YAML, keeping the business logic intact. Flows are reviewed in pull requests, and staging runs against test data before a flow goes live. Where the choice of orchestrator is still open, Kestra is one of several alternatives to Airflow, beside Dagster, Prefect and n8n.
Yes, by default. Kestra's script tasks run in individual Docker containers by default, or in a local process when you choose it. Airflow's environment is one set of Python dependencies by default, and a Dag that needs its own libraries for a task uses the PythonVirtualenvOperator, the ExternalPythonOperator, or the Docker and Kubernetes decorators that run a function in a container.
Yes. Kestra and Airflow are both licensed under Apache 2.0. Kestra also sells a separate commercial Enterprise Edition, which Kestra's documentation says adds features such as SSO, RBAC, multi-tenancy and audit logs for organizations that need enterprise security and governance on top of the open-source edition.
Yes, since Airflow 3.0, according to Airflow's event-driven scheduling documentation. The feature uses an AssetWatcher that monitors an external event source, such as a message queue, and triggers an asset update when a relevant event occurs, which lets Dags be triggered by external events. In Kestra, a Realtime Trigger does the same job for a flow, starting it the moment an event arrives, with millisecond latency.
No. A Kestra flow is YAML, and Kestra's No Code editor builds flows visually without writing YAML. Python comes in only where a task runs Python code. Kestra has script plugins for Python, R, Julia, Ruby, Node.js, Powershell and Shell, and each script task runs in its own Docker container by default.
Often, yes. Most Kestra triggers poll external systems at a fixed interval, according to Kestra's Realtime Trigger documentation, so a flow starts seconds or minutes after new data appears. Realtime Triggers listen for events from sources such as Kafka, AWS SQS or Google Pub/Sub instead, and start a flow with millisecond latency.
Yes. Kestra's Airflow plugin can trigger an Airflow Dag run from a Kestra flow and optionally wait for it to complete, so the pipelines not yet moved keep running in Airflow while the moved ones run in Kestra. We recommend moving the non-critical pipelines first and the business-critical ones last, once the parallel runs pass.
Moving off Airflow?
Book a discovery call. A senior partner runs the call, and if Kestra is already in your architecture plan, we skip another evaluation and go straight to scoping.