Skip to content
Discussion options

You must be logged in to vote

Thanks for running that comparison. That is a useful baseline.

So the picture seems to be:

clean apache/airflow:3.2.2 container on your system:
  airflow --help ≈ 2.1s
original reported environment:
  airflow --help ≈ 4-8s

and the import profile suggests the time is mostly Python import / Airflow initialization overhead, especially around:

airflow
airflow.configuration
airflow.sdk.execution_time.task_runner
airflow.sdk.bases.operator
sqlalchemy

So I think the original conclusion still holds:

  • airflow --help does not appear to connect to the database
  • the empty SQL_ALCHEMY_CONN traceback was config parsing, not DB connection
  • airflow --help still initializes a non-trivial amount of Airflow…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@static-moonlight
Comment options

@starkmarkus
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@starkmarkus
Comment options

@GayathriSrividya
Comment options

@starkmarkus
Comment options

Answer selected by static-moonlight
@GayathriSrividya
Comment options

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