Get Exception details on Airflow on_failure_callback context
An on_failure_callback can be supplied to the DAG and/or individual tasks. In the first case (supplying to the DAG), there is no ‘exception’ in the context (the argument Airflow calls your on_failure_callback with). In the second case (supplying to a task), there is. The contained object should be a python Exception. It’s surprisingly non-intuitive to … Read more