ASGI app factory detected #68745
-
|
The triggerer and scheduler print this warning: I can't find any setting for a factory flag. What does this mean? Can I do something about it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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. |
Beta Was this translation helpful? Give feedback.
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.…