Skip to content

Commit c800632

Browse files
k.privezentsevbolkedebruin
k.privezentsev
authored andcommitted
[AIRFLOW-1706] Fix query error for MSSQL backend
MSSQL doesn't support key word 'is' as synonym for '=' Closes apache#2733 from patsak/fix/illegal_query_for_mssql
1 parent abcf1d5 commit c800632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/jobs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def reset_state_for_orphaned_tasks(self, filter_by_dag_run=None, session=None):
241241
TI.execution_date == DR.execution_date))
242242
.filter(
243243
DR.state == State.RUNNING,
244-
DR.external_trigger.is_(False),
244+
DR.external_trigger == False,
245245
DR.run_id.notlike(BackfillJob.ID_PREFIX + '%'),
246246
TI.state.in_(resettable_states))).all()
247247
else:

0 commit comments

Comments
 (0)