Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sentry failure callback to custom python operator #479

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dags/stellar_etl_airflow/build_del_ins_operator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from airflow.operators.python import PythonOperator
from stellar_etl_airflow.default import alert_after_max_retries


def initialize_task_vars(
Expand Down Expand Up @@ -70,5 +71,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,
)
Loading