haard opened a new pull request #14380: URL: https://github.com/apache/airflow/pull/14380
An environment variable that almost looks like an Airflow var but is not (e.g `AIRFLOW__SOME__brokenthing`) leads to a NPE in `airflow/configuration.py`. In addition, when using the Celery Executor and triggering this exception, the context is silenced in the log message (using `.error` instead of `.exception`) which makes troubleshooting needlessly hard. This patch ignores but logs unexpected env vars, and uses `log.exception` when running a Celery task fails. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
