Skip to content

Commit

Permalink
Fix 2.7.0 db migration job errors (#33652)
Browse files Browse the repository at this point in the history
* Fix circular import from kubernetes_executor

* Do not validate SQL when initialising Sentry

---------

Co-authored-by: Lipu Fei <[email protected]>
  • Loading branch information
LipuFei and Lipu Fei authored Aug 23, 2023
1 parent 5f504e9 commit 4bdf908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from sqlalchemy import select, update
from sqlalchemy.orm import Session

from airflow import AirflowException
from airflow.exceptions import AirflowException

try:
from airflow.cli.cli_config import (
Expand Down
2 changes: 1 addition & 1 deletion airflow/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self):
# LoggingIntegration is set by default.
integrations = [sentry_flask]

executor_class, _ = ExecutorLoader.import_default_executor_cls()
executor_class, _ = ExecutorLoader.import_default_executor_cls(validate=False)

if executor_class.supports_sentry:
from sentry_sdk.integrations.celery import CeleryIntegration
Expand Down

0 comments on commit 4bdf908

Please sign in to comment.