You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate Snowflake Notebook Scheduling with Apache Airflow #40167
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.
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.
@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.
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.
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.
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.
Activity
boring-cyborg commentedon Jun 10, 2024
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.
blcksrx commentedon Jun 11, 2024
@Lee-W please assign it in my name
blcksrx commentedon Jun 11, 2024
@jacobcbeaudin
Just to be clear, does not airflow SnowflakeSqlApiOperator sufficient with execute notebook sql statement?
jacobcbeaudin commentedon Jun 12, 2024
@blcksrx Thank you for the reference. The
SnowflakeSqlApiOperatorwith theEXECUTE NOTEBOOKstatement 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.blcksrx commentedon Jun 13, 2024
@jacobcbeaudin @Lee-W
I understand, let's close this issue then, once Snowflake announced the official documentation then we'll continue
Lee-W commentedon Jun 13, 2024
Sounds good to me 👍 @jacobcbeaudin I'll close it for now. But please feel free to reopen it
saurabhkpdev commentedon Dec 18, 2025
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.
potiuk commentedon Dec 18, 2025
Feel free to contribute it :)
blcksrx commentedon Jan 20, 2026
@potiuk Im going to work on it
potiuk commentedon Feb 14, 2026
Feel free.
potiuk commentedon Mar 2, 2026
@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.
passionworkeer commentedon Mar 12, 2026
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.
jacobcbeaudin commentedon Mar 12, 2026
I'm going to implement this. Will add a dedicated
SnowflakeNotebookOperatorbacked by the existingSnowflakeSqlApiHookandSnowflakeSqlApiTrigger, with deferrable mode supported from the start — as suggested in the comment above. PR coming soon.jacobcbeaudin commentedon Mar 12, 2026
I've opened a PR for this: #63470
The implementation adds a dedicated
SnowflakeNotebookOperatorthat:EXECUTE NOTEBOOKvia the Snowflake SQL APISnowflakeSqlApiTriggerNo new hook or trigger code was needed. The operator reuses
SnowflakeSqlApiHookandSnowflakeSqlApiTrigger.