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 startedMove 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.
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.
You run the scheduler, webserver, workers, triggerer and a metadata database, and every provider shares one Python environment.
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.
| Airflow | Kestra | |
|---|---|---|
| Who writes workflows | Python engineers who know Airflow | Anyone who can write YAML; Python, SQL, dbt and shell run as tasks |
| The plan | Discovered by running Python | Declared; the topology is visible before any run |
| Scaling | Parse time and database load grow with the DAG count | Stored as YAML, so the flow count adds no parse time |
| Several teams | Usually one deployment per team | Namespaces, with RBAC, SSO and tenants |
| Integrations | Providers installed on every worker | 2,900+ plugins, versioned apart from the core |
| Best fit | Python engineers in one codebase | Several teams, and work beyond Python |
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.
1from datetime import datetime23import requests4from airflow.sdk import dag, task567@dag(schedule="@daily", start_date=datetime(2024, 1, 1), catchup=False,8 default_args={"retries": 3})9def example_astronauts():10 @task11 def get_astronauts(**context) -> list[dict]:12 r = requests.get("http://api.open-notify.org/astros.json")13 r.raise_for_status()14 context["ti"].xcom_push(key="number_of_people_in_space", value=r.json()["number"])15 return r.json()["people"]1617 @task18 def print_astronaut_craft(greeting: str, person_in_space: dict) -> None:19 print(f"{person_in_space['name']} is currently in space flying on the "20 f"{person_in_space['craft']}! {greeting}")2122 print_astronaut_craft.partial(greeting="Hello! :)").expand(23 person_in_space=get_astronauts()24 )252627example_astronauts()
1id: example_astronauts2namespace: company.data34tasks:5 - id: get_astronauts6 type: io.kestra.plugin.scripts.python.Script7 dependencies:8 - requests9 - kestra10 retry:11 type: constant12 interval: PT5M13 maxAttempts: 4 # retries: 3 → 4 attempts in total14 script: |15 import requests16 from kestra import Kestra1718 r = requests.get("http://api.open-notify.org/astros.json")19 r.raise_for_status()20 Kestra.outputs({"number_of_people_in_space": r.json()["number"],21 "people": r.json()["people"]})2223 - id: print_astronaut_craft24 type: io.kestra.plugin.core.flow.Loop25 values: "{{ outputs.get_astronauts.vars.people }}"26 tasks:27 - id: greet28 type: io.kestra.plugin.core.log.Log29 message: "{{ fromJson(item.value).name }} is currently in space flying on the {{ fromJson(item.value).craft }}! Hello! :)"3031triggers:32 - id: daily33 type: io.kestra.plugin.core.trigger.Schedule34 cron: "@daily"35 recoverMissedSchedules: NONE # catchup=False
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 APIPause 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 taskWhen 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| In the translated flow | What to do |
|---|---|
Schedule without recoverMissedSchedules | Kestra replays every missed tick after a pause. Translate catchup=False as recoverMissedSchedules: NONE |
maxAttempts copied from retries | retries: 2 means three runs in Airflow. Write maxAttempts: 3 |
conditions: on a trigger | Write the condition as one when: expression |
pluginDefaults in the flow | Set the values on each task, or in flow variables |
trigger.date used as data_interval_start | trigger.date is the tick itself. Use trigger.previous for the prior period, or the first run skips or repeats a day |
| Python that still calls Airflow | Variable.get , hooks and from airflow imports fail in a clean container. Swap them for secret() , kv() or a plugin task |
One flow-level errors for per-task callbacks | Flow-level errors runs once per failed execution. Put errors on the task to alert per task |
The same flows run on all three editions.
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 startedThe same flows, hosted. SSO, RBAC, a managed secret manager and remote task runners, with no servers to operate.
Start your Cloud trialSelf-hosted, hybrid or air-gapped. Tenants, Worker Groups, Policies, the Assets catalog and high availability on Kafka and Elasticsearch.
Talk to sales