You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "static-moonlight (via GitHub)" <gi...@apache.org> on 2026/06/19 09:10:31 UTC
[D] ASGI app factory detected [airflow]
GitHub user static-moonlight created a discussion: ASGI app factory detected
The triggerer and scheduler print this warning:
```
[...] [warning ] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly. [uvicorn.error] loc=config.py:491
```
I can't find any setting for a factory flag. What does this mean? Can I do something about it?
GitHub link: https://github.com/apache/airflow/discussions/68745
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ASGI app factory detected [airflow]
Posted by "starkmarkus (via GitHub)" <gi...@apache.org>.
GitHub user starkmarkus added a comment to the discussion: ASGI app factory detected
That warning comes from Uvicorn, not from an Airflow setting directly. It means Uvicorn was given something that looks like an ASGI application factory, so it can still run it, but it warns because you would normally pass the equivalent factory option explicitly when starting Uvicorn. In this case, since the triggerer or scheduler start that internal server themselves, there probably is not an airflow.cfg option you can set manually for this. If everything is working, I would treat it as a harmless warning rather than something you need to fix locally. The Airflow-side fix would likely be for the code path that starts Uvicorn to pass the factory option explicitly so Uvicorn does not warn. In short: this is probably a logging cleanup issue on the Airflow side, not a user configuration problem.
GitHub link: https://github.com/apache/airflow/discussions/68745#discussioncomment-17363621
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] ASGI app factory detected [airflow]
Posted by "static-moonlight (via GitHub)" <gi...@apache.org>.
GitHub user static-moonlight closed a discussion: ASGI app factory detected
The triggerer and scheduler print this warning:
```
[...] [warning ] ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly. [uvicorn.error] loc=config.py:491
```
I can't find any setting for a factory flag. What does this mean? Can I do something about it?
GitHub link: https://github.com/apache/airflow/discussions/68745
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org