Skip to content
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