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]>
(cherry picked from commit 4bdf908)
  • Loading branch information
LipuFei authored and ephraimbuddy committed Aug 28, 2023
1 parent b0f9afb commit 4befd33
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 @@ -36,7 +36,7 @@

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 4befd33

Please sign in to comment.