Skip to content

[v3-4-test] Fix Trigger.clean_unused rejecting a caller-provided session (#75096) - #75122

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-e3110a3-v3-4-test
Oct 20, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-e3110a3-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Restore the keyword-only session argument that #70961 removed, so callers
that run the cleanup inside their own transaction keep working. The model
method now deletes one batch in the caller's transaction without retrying:
a retry would have to roll back that transaction and silently discard the
caller's other writes. The triggerer supervisor owns the retry instead and
runs each attempt in a new transaction.
(cherry picked from commit e3110a3)

Co-authored-by: Kaxil Naik [email protected]

…ssion (#75096)

Restore the keyword-only session argument that #70961 removed, so callers
that run the cleanup inside their own transaction keep working. The model
method now deletes one batch in the caller's transaction without retrying:
a retry would have to roll back that transaction and silently discard the
caller's other writes. The triggerer supervisor owns the retry instead and
runs each attempt in a new transaction.
(cherry picked from commit e3110a3)

Co-authored-by: Kaxil Naik <[email protected]>
@kaxil
kaxil marked this pull request as ready for review October 19, 2026 15:52
@kaxil
kaxil requested a review from vatsrahul1001 October 19, 2026 15:52
@kaxil kaxil added this to the Airflow 3.4.0 milestone Oct 19, 2026
@vatsrahul1001
vatsrahul1001 merged commit de4c204 into v3-4-test Oct 20, 2026
178 of 189 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-e3110a3-v3-4-test branch October 20, 2026 04:11
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…ssion (#75096) (#75122)

Restore the keyword-only session argument that #70961 removed, so callers
that run the cleanup inside their own transaction keep working. The model
method now deletes one batch in the caller's transaction without retrying:
a retry would have to roll back that transaction and silently discard the
caller's other writes. The triggerer supervisor owns the retry instead and
runs each attempt in a new transaction.
(cherry picked from commit e3110a3)

Co-authored-by: Kaxil Naik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants