Nataneljpwd commented on code in PR #55253:
URL: https://github.com/apache/airflow/pull/55253#discussion_r2322259997
##########
airflow-core/src/airflow/api_fastapi/app.py:
##########
@@ -200,5 +200,17 @@ def init_plugins(app: FastAPI) -> None:
log.error("'middleware' key is missing for the fastapi middleware:
%s", name)
continue
+ # Resolve middleware string to class if needed
+ if isinstance(middleware, str):
+ try:
+ from airflow.utils.module_loading import import_string
+ middleware = import_string(middleware)
Review Comment:
Is this to import the middleware string as Python code?
Just a question as I haven't worked on this part of airflow yet
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]