SameerMesiah97 commented on code in PR #70930:
URL: https://github.com/apache/airflow/pull/70930#discussion_r4200404292


##########
providers/snowflake/tests/system/snowflake/example_snowflake_cortex_agent.py:
##########
@@ -59,6 +94,18 @@
     )
     # [END howto_operator_snowflake_cortex_agent]
 
+    # [START howto_operator_snowflake_cortex_agent_delete]
+    delete_agent = SnowflakeCortexAgentDeleteOperator(
+        task_id="delete_agent",
+        database=DATABASE,
+        schema=SCHEMA,
+        agent_name=AGENT_NAME,
+        if_exists=True,
+    )
+    # [END howto_operator_snowflake_cortex_agent_delete]
+
+    create_agent >> update_agent >> run_agent >> delete_agent

Review Comment:
   I have added a teardown step to the end of the chain. I believe that should 
prevent agents from being orphaned between runs.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to