Kestra vs. Snowflake Tasks : SQL task graphs inside a Snowflake account vs. YAML flows that reach Snowflake and every system around it.

Snowflake Tasks runs SQL statements, stored procedures and Snowflake Scripting on a schedule inside a Snowflake account. Kestra is an open-source orchestration platform that runs YAML flows across Snowflake and the systems around it.

Snowflake Tasks or Kestra?

Snowflake Tasks is the better fit if

  • Every step of the pipeline is SQL, a stored procedure or a dbt project that runs inside Snowflake.
  • You want scheduling with no extra service to deploy or operate outside your Snowflake account.
  • You want a task to start when a stream has new data, on serverless compute that Snowflake sizes.

Choose Kestra if

  • Your pipelines start before Snowflake or end after it, in APIs, files, other databases or SaaS tools.
  • You want Python, shell and dbt steps to run on workers you control, with their own dependencies.
  • You want each pipeline's schedule, retries and alerts in one YAML file that you review in Git.

How do Snowflake Tasks and Kestra compare, feature by feature?

Workflow definition One CREATE TASK statement per task, linked with AFTER One YAML file per flow, validated when you save it
What a step runs A SQL statement, a stored procedure call or a Snowflake Scripting block SQL, Python, shell, dbt, Node.js and more, as tasks
Compute A virtual warehouse, or serverless compute up to XXLARGE Kestra workers, containers, or task runners on Kubernetes and cloud batch services
Operations Part of Snowflake, with nothing else to run You run it on Docker or Kubernetes, or use Kestra Cloud
Triggers Interval or cron schedule on the root task, or a stream with new data Schedules, webhooks, flow triggers, polling and realtime triggers
Graph size Up to 1,000 tasks per graph, with 100 parents and 100 children per task Subflows split a large workflow into flows that run and version on their own
Failures Up to 30 automatic retries of the graph; a task suspends after 10 consecutive failed runs by default Retry policy per task or flow, plus errors, finally and afterExecution blocks
Changing a pipeline Suspend the root task before changing any task in the graph Each save creates a revision; drafts stage changes without touching running executions
Pricing Snowflake credits for serverless compute, or warehouse time with a 60-second minimum per resume Free open source; Kestra Cloud billed on usage
License Proprietary, part of the Snowflake service Apache 2.0

Which data teams run their warehouse pipelines on Kestra?

Media tech

6+ data tools, from ELT into Snowflake to dbt Cloud and Hightouch, now run as one dependency-aware pipeline.

Simply powerful yet simple enough.

Hernán Estrin, Analytics Engineering Lead, Riverside

Read the story

SaaS

20,000+ executions a month across more than 70 workflows for Airbyte, dbt and reverse ETL.

Declarative Data Engineering is rising as Data teams embrace software practices and Kestra got this point right allowing data practitioners to collaborate around a common tool.

Antoine Balliet, Senior Data Engineer

Read the story

Retail

+900% data production on a data mesh with more than 5,000 flows.

Kestra is the unifying layer for our data and workflows. You can start small, but then there is no limit to the possibilities and scalability of such an open architecture.

Julien Henrion, Head of Data

Read the story

How are Snowflake Tasks and Kestra built?

  • Snowflake Tasks: SQL objects in a schema

    A task is a schema object that runs one SQL statement, procedure call or Snowflake Scripting block. Tasks linked with AFTER form a graph under a root task, and Snowflake fixes a version of the whole graph when the root task is resumed.

    • A new task stays suspended until ALTER TASK ... RESUME
    • Serverless compute is sized by Snowflake for each run
    • A finalizer task runs after the graph, whether it succeeds or fails
    • Tasks pass values with SYSTEM$SET_RETURN_VALUE
  • Kestra: declarative flows

    A flow is a YAML file of tasks that run in sequence, in parallel or in loops. The executor tracks state in Kestra's database and hands each task to a worker, which queries Snowflake, calls an API or runs a script.

    • Snowflake tasks run queries, stage uploads and downloads, and the Snowflake CLI
    • Script tasks install their dependencies per task
    • Outputs and files pass between tasks by reference
    • Every save creates a revision you can diff and roll back

What does the same pipeline look like in each?

The same pipeline in both: a COPY INTO load with retries, a stored procedure that builds a daily table, and a Slack message when the run ends.

Get started with Kestra
Snowflake task graph orders_daily.sql
1CREATE OR REPLACE TASK load_orders2  WAREHOUSE = transform_wh3  SCHEDULE = 'USING CRON 0 6 * * * UTC'4  TASK_AUTO_RETRY_ATTEMPTS = 25AS6  COPY INTO raw.orders FROM @raw.orders_stage FILE_FORMAT = (TYPE = 'CSV' SKIP_HEADER = 1);78CREATE OR REPLACE TASK build_daily_orders9  WAREHOUSE = transform_wh10  AFTER load_orders11AS12  CALL analytics.build_daily_orders();1314CREATE OR REPLACE TASK notify_team15  WAREHOUSE = transform_wh16  FINALIZE = load_orders17AS18  CALL SYSTEM$SEND_SNOWFLAKE_NOTIFICATION(19    SNOWFLAKE.NOTIFICATION.TEXT_PLAIN(20      SNOWFLAKE.NOTIFICATION.SANITIZE_WEBHOOK_CONTENT('orders_daily finished')21    ),22    SNOWFLAKE.NOTIFICATION.INTEGRATION('slack_alerts')23  );2425ALTER TASK notify_team RESUME;26ALTER TASK build_daily_orders RESUME;27ALTER TASK load_orders RESUME;
/ Flows / orders_daily
1id: orders_daily2namespace: company.analytics34retry:5  type: constant6  interval: PT1M7  maxAttempts: 389tasks:10  - id: load_orders11    type: io.kestra.plugin.jdbc.snowflake.Query12    url: "{{ secret('SNOWFLAKE_URL') }}"13    username: "{{ secret('SNOWFLAKE_USER') }}"14    password: "{{ secret('SNOWFLAKE_PASSWORD') }}"15    warehouse: TRANSFORM_WH16    sql: COPY INTO raw.orders FROM @raw.orders_stage FILE_FORMAT = (TYPE = 'CSV' SKIP_HEADER = 1)1718  - id: build_daily_orders19    type: io.kestra.plugin.jdbc.snowflake.Query20    url: "{{ secret('SNOWFLAKE_URL') }}"21    username: "{{ secret('SNOWFLAKE_USER') }}"22    password: "{{ secret('SNOWFLAKE_PASSWORD') }}"23    warehouse: TRANSFORM_WH24    sql: CALL analytics.build_daily_orders()2526afterExecution:27  - id: notify_team28    type: io.kestra.plugin.slack.notifications.SlackIncomingWebhook29    url: "{{ secret('SLACK_WEBHOOK') }}"30    messageText: "orders_daily finished: {{ execution.state }}"3132triggers:33  - id: daily34    type: io.kestra.plugin.core.trigger.Schedule35    cron: "0 6 * * *"

How hard is it to move from Snowflake Tasks to Kestra?

Leaving Snowflake Tasks

A task graph is a set of CREATE TASK statements tied together with AFTER, FINALIZE and WHEN clauses. The SQL, stored procedures and dbt projects they call stay in Snowflake, so only the scheduling and the dependencies move.

Moving to Kestra

Each task's statement runs unchanged in a Snowflake Query task. The root schedule becomes a Schedule trigger, AFTER becomes task order, a finalizer becomes a finally or afterExecution block, and a stream condition becomes a Snowflake trigger that polls a query. Suspend each root task once its flow is live.

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

Snowflake Tasks

Part of the Snowflake service, with no separate license. Serverless tasks are billed in credits for the compute they use. Tasks on a user-managed warehouse are billed for warehouse time, with a 60-second minimum each time the warehouse resumes.

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. Queries a flow sends to Snowflake still run on your Snowflake warehouse.

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 Snowflake Tasks teams

SOC 2 GDPR

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

Security overview