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
Maybe some script or pre-commit to check if the Python DAG feature vs YML DAG feature are in sync
The text was updated successfully, but these errors were encountered:
pankajastro
changed the title
Represent the Airflow Python DAG feature vs YML better way
Represent the Airflow Python vs YML DAG feature better way
Jul 18, 2024
Feedback from @matveykortsev to support notifications as callbacks.
Guys add please support for on_failure_callback in this way:
from airflow.providers.slack.notifications.slack import send_slack_notification
'on_failure_callback': [
send_slack_notification(
slack_conn_id='slack',
text="""
🔴 Task Failed. Task: {{ ti.task_id }} Dag: {{ ti.dag_id }} Execution Time: {{ ti.execution_date }} Log Url: {{ ti.log_url }}
""",
channel="analytics-alerts",
username="Airflow",
)
],
Now its only possible without params and only through absolute path for .py file
pankajastro
changed the title
Represent the Airflow Python vs YML DAG feature better way
[Docs] Represent the Airflow Python vs YML DAG feature better way
Oct 21, 2024
Maybe some script or pre-commit to check if the Python DAG feature vs YML DAG feature are in sync
The text was updated successfully, but these errors were encountered: