ashb opened a new pull request, #66037: URL: https://github.com/apache/airflow/pull/66037
In Airflow 2, task startup and finalization logs were wrapped in collapsible ::group:: markers so the UI could hide them, letting users focus on the actual task output. This was lost in the move to structlog. Re-emit the markers in the task runner: - ::group::Pre Execute before startup through pre_execute/callbacks - ::endgroup:: just before execute() - ::group::Post Execute / ::endgroup:: around finalize() The UI already handles the grouping, we just needed to emit the appropriate log lines Collapsed: <img width="1300" height="187" alt="Screenshot 2026-04-28 at 18 45 10" src="https://github.com/user-attachments/assets/3e3e53bf-59e9-4966-82ae-23bc1d7f7b89" /> Expanded: <img width="1285" height="360" alt="Screenshot 2026-04-28 at 18 45 20" src="https://github.com/user-attachments/assets/2e222353-4193-4447-8b1d-dfd3258f3e9b" /> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
