Skip to content

Don't create new session in stuck queue reschedule handler - #44192

Merged
dstandish merged 3 commits into
apache:mainfrom
astronomer:dont-create-new-session-requeue-fix
Nov 19, 2024
Merged

Don't create new session in stuck queue reschedule handler#44192
dstandish merged 3 commits into
apache:mainfrom
astronomer:dont-create-new-session-requeue-fix

Conversation

@dstandish

@dstandishdstandish commented Nov 19, 2024

Copy link
Copy Markdown
Contributor

This is a fix up / followup to #43520

It does not really make a material difference, just, I'm avoiding use of the session decorator, and the create / dispose session logic, when it is not needed. i also commit as i go along since there's no reason to handle multiple distinct tis in the same transaction.

cc @jscheffl

@boring-cyborgboring-cyborgBot added the area:Scheduler including HA (high availability) scheduler label Nov 19, 2024
@dstandishdstandish added this to the Airflow 2.10.4 milestone Nov 19, 2024

@jscheffljscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! That totally makes sense!

@dstandish
dstandish merged commit a825c95 into apache:mainNov 19, 2024
@dstandish
dstandish deleted the dont-create-new-session-requeue-fix branch November 19, 2024 21:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Schedulerincluding HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@dstandish@hussein-awala@jscheffl