Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dag-processor fetch metabase config #23575

Merged
merged 1 commit into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion airflow/cli/commands/dag_processor_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def dag_processor(args):
if not conf.getboolean("scheduler", "standalone_dag_processor"):
raise SystemExit('The option [scheduler/standalone_dag_processor] must be True.')

sql_conn: str = conf.get('core', 'sql_alchemy_conn').lower()
sql_conn: str = conf.get('database', 'sql_alchemy_conn').lower()
if sql_conn.startswith('sqlite'):
raise SystemExit('Standalone DagProcessor is not supported when using sqlite.')

Expand Down
2 changes: 1 addition & 1 deletion tests/cli/commands/test_dag_processor_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def setUpClass(cls):
)
@mock.patch("airflow.cli.commands.dag_processor_command.DagFileProcessorManager")
@pytest.mark.skipif(
conf.get('core', 'sql_alchemy_conn').lower().startswith('sqlite'),
conf.get('database', 'sql_alchemy_conn').lower().startswith('sqlite'),
reason="Standalone Dag Processor doesn't support sqlite.",
)
def test_start_manager(
Expand Down