Skip to content
Discussion options

You must be logged in to vote

Generally - in Airflow 3 - see https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-3-0-0-2025-04-22 - you are not allowed to use direct DB connection from worker. Your worker is not supposed to connect to the database at all - it uses execution API to retrieve the connection, This is part of the new architecture of Airflow.

So it really depends where and in what context you start the shell. If you start it on scheduler, I think it might work, but only via Connection public API in scheduler, not interactive session as you do.

The interactive session behaviour you described was never a Public interface of Airflow.

You have not described how you start your intera…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brki
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants