Skip to content

Airflow Connection not possible to be used #52921

@jscheffl

Description

@jscheffl

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

Testing with Integration Test Dag providers/edge3/src/airflow/providers/edge3/example_dags/integration_test.py on main failed to execute the task "connection" which attempts to access a connection. Stack trace:

[2025-07-05, 21:35:08] ERROR - Task failed with exception: source="task"
AirflowRuntimeError: CONNECTION_NOT_FOUND: {'conn_id': 'integration_test'}
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/task_runner.py", line 875 in run
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/task_runner.py", line 1162 in _execute_task
File "/opt/airflow/task-sdk/src/airflow/sdk/bases/operator.py", line 397 in wrapper
File "/opt/airflow/task-sdk/src/airflow/sdk/bases/decorator.py", line 251 in execute
File "/opt/airflow/task-sdk/src/airflow/sdk/bases/operator.py", line 397 in wrapper
File "/opt/airflow/providers/standard/src/airflow/providers/standard/operators/python.py", line 217 in execute
File "/opt/airflow/providers/standard/src/airflow/providers/standard/operators/python.py", line 240 in execute_callable
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/callback_runner.py", line 82 in run
File "/files/dags/integration_test.py", line 134 in connection
File "/opt/airflow/task-sdk/src/airflow/sdk/bases/hook.py", line 65 in get_connection
File "/opt/airflow/task-sdk/src/airflow/sdk/definitions/connection.py", line 152 in get
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/context.py", line 158 in _get_connection

Started the system via breeze with the command line breeze start-airflow --python 3.12 --backend postgres --executor EdgeExecutor --load-example-dags

What you think should happen instead?

Connection facility should be working.

How to reproduce

breeze start-airflow --python 3.12 --backend postgres --executor EdgeExecutor --load-example-dags
Start integration_test Dag from edge3 package, see task "connection"

Operating System

Ubuntu 22.04

Versions of Apache Airflow Providers

All from main

Deployment

Other

Deployment details

^^

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions