airflow.providers.standard.example_dags.example_hitl_operator¶
Attributes¶
Classes¶
Simple notifier to demonstrate HITL notification without setup any connection. |
Module Contents¶
- class airflow.providers.standard.example_dags.example_hitl_operator.LocalLogNotifier(message)[source]¶
Bases:
airflow.sdk.bases.notifier.BaseNotifierSimple notifier to demonstrate HITL notification without setup any connection.
- notify(context)[source]¶
Send a notification (sync).
Implementing this is a requirement for running this notifier in the Dag processor, which is where the on_success_callback and on_failure_callback run.
- Parameters:
context (airflow.providers.common.compat.sdk.Context) – The airflow context