Kestra vs. Dagster : Python assets with lineage for data engineers vs. YAML flows that data, platform and ops teams share.

Dagster models data pipelines as software-defined assets in Python and tracks the lineage between them. Kestra is an open-source orchestration platform where Python, SQL, dbt and shell are tasks in YAML flows, started by schedules or events.

Dagster or Kestra?

Dagster is the better fit if

  • Your team thinks in tables and models, and wants lineage, partitions and freshness tracked per asset.
  • Your pipelines are Python and dbt, owned by engineers who write Python every day.
  • You want Dagster+ to host the control plane and run your code on its serverless compute.

Choose Kestra if

  • Analysts, platform engineers and ops teams need to build workflows next to the data team.
  • Workflows start from webhooks, queues and file arrivals as often as from a schedule.
  • Your scripts are in several languages and should run as they are, without asset decorators.

How do Dagster and Kestra compare, feature by feature?

Workflow definition Python functions decorated with @asset, registered in Definitions YAML flows, validated against plugin schemas on save
Unit of work Assets (tables, files, models) and ops Tasks, grouped into flows and subflows
Languages Python, with other languages launched from Python through Dagster Pipes Python, SQL, Node.js, Go, R, shell and more, as tasks
Automation Schedules, sensors, asset sensors and declarative automation conditions Schedules, webhooks, flow triggers, polling and realtime triggers
Data lineage Asset lineage graph, with dbt models loaded as assets Assets and lineage in Kestra Enterprise and Kestra Cloud
Access control Authentication, RBAC and audit logs in Dagster+ Namespaces, with RBAC, SSO and audit logs in Kestra Enterprise
Integrations Python libraries such as dagster-dbt and dagster-slack 2,900+ plugins, versioned apart from the core
Hosting Self-hosted, or Dagster+ Serverless or Hybrid Self-hosted, air-gapped (Kestra Enterprise), or Kestra Cloud
License Apache 2.0 Apache 2.0
GitHub stars 16k+ 30k+

Which data teams chose Kestra over Dagster?

Technology

200 ML engineers on Kestra, chosen after the team evaluated Prefect and Dagster.

I want to highlight their robustness, which is crucial at our scale. Few companies operate at this level, especially in AI/ML.

Senior Engineering Manager, Apple ML Team

Read the story

Media tech

0 pipeline rewrites to connect dbt Cloud, Snowflake and Hightouch, after Dagster's learning curve ruled it out.

Simply powerful yet simple enough.

Hernán Estrin, Analytics Engineering Lead, Riverside

Read the story

How are Dagster and Kestra built?

Dagster loads Python definitions from code locations and records the assets they produce. Kestra stores each flow as YAML and sends its tasks to workers.

  • Dagster: software-defined assets

    An asset is a Python function that produces a table, file or model. Code location servers load these definitions, and the daemon runs schedules, sensors and the run queue.

    • Code location servers expose definitions to the webserver and daemon
    • One daemon evaluates schedules, sensors and automation conditions
    • A run launcher starts each run as a process, container or Kubernetes pod
    • Run history is stored in SQLite by default, or Postgres
  • Kestra: declarative flows

    A flow is a YAML document checked against each plugin's schema when you save it. The executor decides which task runs next, and workers run the task code.

    • Saving a flow runs no user code
    • The scheduler evaluates schedule, polling and realtime triggers
    • Workers receive tasks from the worker controller over gRPC
    • Script tasks run in a container or a process, with dependencies per task

What does the same pipeline look like in each?

The same pipeline in both: a CSV download with two retries, a DuckDB aggregation that runs after it, a daily schedule and a Slack alert when a run fails.

Get started with Kestra
Dagster assets definitions.py
1import os23import dagster as dg4import duckdb5import requests6from dagster_slack import make_slack_on_run_failure_sensor78@dg.asset(retry_policy=dg.RetryPolicy(max_retries=2, delay=300))9def raw_orders() -> None:10    response = requests.get("https://example.com/exports/orders.csv", timeout=60)11    response.raise_for_status()12    with open("orders.csv", "wb") as f:13        f.write(response.content)1415@dg.asset(deps=[raw_orders])16def daily_revenue() -> None:17    duckdb.sql(18        "COPY (SELECT order_date, SUM(amount) AS revenue "19        "FROM read_csv_auto('orders.csv') GROUP BY order_date) "20        "TO 'daily_revenue.csv' (HEADER)"21    )2223defs = dg.Definitions(24    assets=[raw_orders, daily_revenue],25    schedules=[26        dg.ScheduleDefinition(27            name="daily_refresh",28            cron_schedule="0 6 * * *",29            target=[raw_orders, daily_revenue],30        )31    ],32    sensors=[make_slack_on_run_failure_sensor("#data-alerts", os.environ["SLACK_TOKEN"])],33)
/ Flows / daily_revenue
1id: daily_revenue2namespace: company.analytics34tasks:5  - id: raw_orders6    type: io.kestra.plugin.core.http.Download7    uri: https://example.com/exports/orders.csv8    retry:9      type: constant10      interval: PT5M11      maxAttempts: 31213  - id: daily_revenue14    type: io.kestra.plugin.jdbc.duckdb.Query15    inputFiles:16      orders.csv: "{{ outputs.raw_orders.uri }}"17    outputFiles:18      - daily_revenue19    sql: |20      COPY (21        SELECT order_date, SUM(amount) AS revenue22        FROM read_csv_auto('{{ workingDir }}/orders.csv')23        GROUP BY order_date24      ) TO '{{ outputFiles.daily_revenue }}' (HEADER);2526errors:27  - id: slack_alert28    type: io.kestra.plugin.slack.notifications.SlackIncomingWebhook29    url: "{{ secret('SLACK_WEBHOOK') }}"30    messageText: "daily_revenue failed: {{ execution.id }}"3132triggers:33  - id: daily34    type: io.kestra.plugin.core.trigger.Schedule35    cron: "0 6 * * *"

What does it take to get Dagster and Kestra running?

Both run on a laptop after a few commands.

Dagster Python project
$uvx create-dagster@latest project dagster-quickstart$cd dagster-quickstart$source .venv/bin/activate$dg dev

Dagster's quickstart scaffolds a uv project and starts the UI on localhost:3000 with dg dev. In production, the webserver, the daemon and each code location run as separate services, with Postgres for run storage.

Kestra Database included
$curl -o docker-compose.yml https://raw.githubusercontent.com/kestra-io/kestra/develop/docker-compose.yml$docker compose up

One Compose file starts Kestra and its Postgres database. Open localhost:8080, pick a blueprint and run it. Production runs the same image on Kubernetes with the Kestra Helm chart.

How hard is it to move from Dagster to Kestra?

Leaving Dagster

Asset functions reach into Dagster for resources, I/O managers, partitions and run context, and the graph comes from function arguments and deps. The logic in each function has to be separated from that wiring before it moves.

Moving to Kestra

Python, SQL and dbt code runs in script tasks unchanged. Each asset becomes a task, each schedule or sensor a trigger, and each dependency a position in the flow. Dagster keeps running while flows move over one at a time.

How do Dagster and Kestra compare on licensing, pricing and self-hosting?

Both are Apache 2.0 projects you can run on your own servers.

Dagster

Apache 2.0, so self-hosting carries no license fee. Dagster+ is billed by plan plus credits for every asset materialization and op execution, with serverless compute billed by the minute. Pricing is quoted on request.

Kestra

Apache 2.0 and free to self-host, with no limits on flows or executions. Kestra Cloud is billed on usage, and Kestra Enterprise is licensed per instance. Both are on the pricing page.

Three ways to run Kestra

Try it alone, try it managed, or talk to an expert who has done the migration before.

Kestra Core

Open Source

Where most teams start, and where many experiment with a first production. Self-hosted and free, with no limits on flows or executions.

Get started

Kestra Cloud

Early Access

Managed by the people who build Kestra. No platform to run, pay for what you use.

Try Kestra Cloud
Find the edition that fits your team

Questions from Dagster teams

SOC 2 GDPR

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

Security overview