Lee-W commented on code in PR #40060: URL: https://github.com/apache/airflow/pull/40060#discussion_r1628657678
########## airflow/providers/celery/executors/celery_executor_utils.py: ########## @@ -175,7 +175,11 @@ def _execute_in_fork(command_to_exec: CommandType, celery_task_id: str | None = log.exception("[%s] Failed to execute task.", celery_task_id) ret = 1 finally: - Sentry.flush() + try: + Sentry.flush() + except Exception: + log.exception("Failed to flush Sentry") Review Comment: by using `log.exception`, I think the traceback will be logged. -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org