Skip to content

Commit

Permalink
Remove extra bracket in query (#45735)
Browse files Browse the repository at this point in the history
This was causing error in dag processor manager logging
  • Loading branch information
ephraimbuddy authored Jan 17, 2025
1 parent 6cde25f commit 16eaa5e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions airflow/dag_processing/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,11 +761,9 @@ def clear_nonexistent_import_errors(self, session=NEW_SESSION):

if self._file_paths:
query = query.where(
(
tuple_(ParseImportError.filename, ParseImportError.bundle_name).notin_(
[(f.path, f.bundle_name) for f in self._file_paths]
),
)
tuple_(ParseImportError.filename, ParseImportError.bundle_name).notin_(
[(f.path, f.bundle_name) for f in self._file_paths]
),
)

session.execute(query.execution_options(synchronize_session="fetch"))
Expand Down

0 comments on commit 16eaa5e

Please sign in to comment.