Skip to content

Integrate Snowflake Notebook Scheduling with Apache Airflow #40167

Closed

Description

@jacobcbeaudin

Description

Enable scheduling and execution of Snowflake Notebooks from Apache Airflow. This feature would allow users to orchestrate and manage Snowflake Notebooks directly within Airflow, leveraging Airflow's scheduling, dependency management, and monitoring capabilities.

Use case/motivation

The recent launch of Snowflake Notebooks offers a powerful environment for data engineering, analytics, and machine learning workflows. By integrating Snowflake Notebooks with Airflow, users can automate their data workflows more efficiently. This integration will enable users to:

  • Schedule regular execution of Snowflake Notebooks.
  • Incorporate Snowflake Notebooks into larger, multi-step data pipelines.
  • Use Airflow's monitoring and alerting features to manage the execution of Snowflake Notebooks.
  • Reduce the need for manual intervention, thereby increasing productivity and ensuring consistency in data processes.

This feature will greatly benefit data teams who already use Snowflake and Airflow, providing a seamless and automated way to manage their end-to-end data workflows.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Jun 10, 2024
  2. boring-cyborg commented on Jun 10, 2024

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. added
    provider:snowflake
    and removed
    needs-triage
    on Jun 11, 2024
  4. blcksrx commented on Jun 11, 2024

    @blcksrx
    Contributor

    @Lee-W please assign it in my name

  5. blcksrx commented on Jun 11, 2024

    @blcksrx
    Contributor

    @jacobcbeaudin
    Just to be clear, does not airflow SnowflakeSqlApiOperator sufficient with execute notebook sql statement?

    EXECUTE NOTEBOOK notebook_name();
  6. jacobcbeaudin commented on Jun 12, 2024

    @jacobcbeaudin
    ContributorAuthor

    @jacobcbeaudin Just to be clear, does not airflow SnowflakeSqlApiOperator sufficient with execute notebook sql statement?

    EXECUTE NOTEBOOK notebook_name();

    @blcksrx Thank you for the reference. The SnowflakeSqlApiOperator with the EXECUTE NOTEBOOK statement is indeed a sufficient current solution. However, I anticipate Snowflake will soon offer options to specify parameters for notebooks. At that point, the SQL commands may become less user-friendly. My feature request aims to enhance user experience similar to Databricks jobs Airflow operators, which provide a more streamlined and intuitive interface for managing complex workflows.

  7. blcksrx commented on Jun 13, 2024

    @blcksrx
    Contributor

    @jacobcbeaudin @Lee-W
    I understand, let's close this issue then, once Snowflake announced the official documentation then we'll continue

  8. Lee-W commented on Jun 13, 2024

    @Lee-W
    Member

    Sounds good to me 👍 @jacobcbeaudin I'll close it for now. But please feel free to reopen it

  9. saurabhkpdev commented on Dec 18, 2025

    @saurabhkpdev

    This would be great feature . All the different cells of a notebook turning into airflow task and forming a DAG. Very similar to what cosmos does.

  10. potiuk commented on Dec 18, 2025

    @potiuk
    Member

    This would be great feature . All the different shells of a notebook turning into airflow task and forming a DAG. Very similar to what cosmos does.

    Feel free to contribute it :)

  11. blcksrx commented on Jan 20, 2026

    @blcksrx
    Contributor

    @potiuk Im going to work on it

  12. reopened this on Feb 14, 2026
  13. potiuk commented on Feb 14, 2026

    @potiuk
    Member

    Feel free.

  14. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @blcksrx We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  15. passionworkeer commented on Mar 12, 2026

    @passionworkeer

    A clean provider design might be: add a dedicated SnowflakeNotebookOperator backed by a small hook method that (1) submits a notebook execution job, (2) polls status until terminal state, and (3) returns the execution/job id via XCom. That keeps scheduling semantics in the operator while leaving API details in the hook. It would also be useful to align with other long-running provider operators by supporting deferrable mode from the start, since notebook execution can be much longer than a typical SQL call.

  16. jacobcbeaudin commented on Mar 12, 2026

    @jacobcbeaudin
    ContributorAuthor

    I'm going to implement this. Will add a dedicated SnowflakeNotebookOperator backed by the existing SnowflakeSqlApiHook and SnowflakeSqlApiTrigger, with deferrable mode supported from the start — as suggested in the comment above. PR coming soon.

  17. jacobcbeaudin commented on Mar 12, 2026

    @jacobcbeaudin
    ContributorAuthor

    I've opened a PR for this: #63470

    The implementation adds a dedicated SnowflakeNotebookOperator that:

    • Submits EXECUTE NOTEBOOK via the Snowflake SQL API
    • Polls for completion and pushes the query ID to XCom
    • Supports deferrable mode from the start, reusing the existing SnowflakeSqlApiTrigger
    • Supports passing parameters to notebooks

    No new hook or trigger code was needed. The operator reuses SnowflakeSqlApiHook and SnowflakeSqlApiTrigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providersgood first issuekind:featureprovider:snowflake

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions