Skip to content

Commit

Permalink
Add Sentry failure callback to custom python operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneynotthecity committed Aug 19, 2024
1 parent 0e4f7b6 commit 3d15111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/stellar_etl_airflow/build_del_ins_operator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from airflow.operators.python import PythonOperator

from stellar_etl_airflow.default import alert_after_max_retries

def initialize_task_vars(
table_id,
Expand Down Expand Up @@ -70,5 +70,6 @@ def create_del_ins_task(dag, task_vars, del_ins_callable):
python_callable=del_ins_callable,
op_kwargs=task_vars,
provide_context=True,
on_failure_callback=alert_after_max_retries,
dag=dag,
)

0 comments on commit 3d15111

Please sign in to comment.