We are working with airflow. We have something like 1000+ DAGS.
To manage DAG errors we use the same on_error_callback
function to trigger alerts.
Each DAG is supposed to have context information, that could be expressed as constants, that I would like to share with the alerting stack.
Currently, I am only able to send the dag_id
I retrieve from the context, via context['ti'].dag_id
, and eventually the conf
(parameters).
Is there a way to add other data (constants) to the context when declaring/creating the DAG?
Thanks.