Skip to content

Adding mysql index hint to use index on task_instance.state in critical section query - #25673

Merged
ashb merged 1 commit into
apache:mainfrom
michaelmicheal:add-critical-section-query-mysql-index-hint
Aug 12, 2022
Merged

ashb merged 1 commit into
apache:mainfrom
michaelmicheal:add-critical-section-query-mysql-index-hint

Conversation

@michaelmicheal

@michaelmicheal michaelmicheal commented Aug 11, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #25627


To resolve this issue, I added a MySQL index hint on the Scheduler critical section query to ensure the ti_state index is used to filter scheduled tasks.

@ashb
ashb merged commit 134b555 into apache:main Aug 12, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Aug 15, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.4 milestone Aug 15, 2022
ephraimbuddy pushed a commit that referenced this pull request Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:scheduler type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MySQL Not Using Correct Index for Scheduler Critical Section Query

4 participants