Skip to content

Commit

Permalink
Removed interfering force of index. (#25404)
Browse files Browse the repository at this point in the history
  • Loading branch information
dene14 committed Aug 2, 2022
1 parent 2ee0e1f commit 6778503
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion airflow/dag_processing/processor.py
Expand Up @@ -377,7 +377,6 @@ def manage_slas(self, dag: DAG, session: Session = None) -> None:
qry = (
session.query(TI.task_id, func.max(DR.execution_date).label('max_ti'))
.join(TI.dag_run)
.with_hint(TI, 'USE INDEX (PRIMARY)', dialect_name='mysql')
.filter(TI.dag_id == dag.dag_id)
.filter(or_(TI.state == State.SUCCESS, TI.state == State.SKIPPED))
.filter(TI.task_id.in_(dag.task_ids))
Expand Down

0 comments on commit 6778503

Please sign in to comment.