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

Represent the Airflow Python vs YML DAG feature better way #200

Open
pankajastro opened this issue Jul 18, 2024 · 1 comment
Open

Represent the Airflow Python vs YML DAG feature better way #200

pankajastro opened this issue Jul 18, 2024 · 1 comment

Comments

@pankajastro
Copy link
Contributor

Maybe some script or pre-commit to check if the Python DAG feature vs YML DAG feature are in sync

@pankajastro 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
@pankajastro
Copy link
Contributor Author

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

#206 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant