Skip to content

Conversation

@mariotaddeucci
Copy link
Contributor

Enable to set default on_failure_callback, on_execute_callback, on_retry_callback and on_success_callback.
This allows a macro control of executions triggering callbacks thats are added on every dag such as send a slack notification for each task fail.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@ashb
Copy link
Member

ashb commented Feb 6, 2022

This is already possible by using the policy "hooks" in airflow_local_settings - check the docs

@ashb ashb closed this Feb 6, 2022
@mariotaddeucci mariotaddeucci deleted the default-operators-callbacks branch February 6, 2022 18:04
@potiuk
Copy link
Member

potiuk commented Feb 6, 2022

Agree with @ashb - for the record: https://airflow.apache.org/docs/apache-airflow/stable/concepts/cluster-policies.html?highlight=cluster

@mariotaddeucci
Copy link
Contributor Author

I didn’t know about it. I checked and this will helps to much o/

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

Successfully merging this pull request may close these issues.

3 participants