Skip to content

[v3-2-test] Bring back pre/post execute log groups for task logs (#66037)#66049

Merged
potiuk merged 1 commit into
v3-2-testfrom
backport-0b0271b-v3-2-test
May 1, 2026
Merged

[v3-2-test] Bring back pre/post execute log groups for task logs (#66037)#66049
potiuk merged 1 commit into
v3-2-testfrom
backport-0b0271b-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

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()
    (cherry picked from commit 0b0271b)

Co-authored-by: Ash Berlin-Taylor ash@apache.org

)

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()
(cherry picked from commit 0b0271b)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
@ashb ashb marked this pull request as ready for review April 29, 2026 07:50
@ashb ashb requested review from amoghrajesh, ashb and kaxil as code owners April 29, 2026 07:50
@potiuk potiuk merged commit b36783c into v3-2-test May 1, 2026
84 checks passed
@potiuk potiuk deleted the backport-0b0271b-v3-2-test branch May 1, 2026 15:22
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.2 milestone May 18, 2026
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label May 18, 2026
vatsrahul1001 pushed a commit that referenced this pull request May 20, 2026
) (#66049)

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()
(cherry picked from commit 0b0271b)

Co-authored-by: Ash Berlin-Taylor <ash@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants