ephraimbuddy commented on code in PR #52177:
URL: https://github.com/apache/airflow/pull/52177#discussion_r2173818222
##########
airflow-core/src/airflow/api_fastapi/app.py:
##########
@@ -83,8 +83,10 @@ def create_app(apps: str = "all") -> FastAPI:
dag_bag = create_dag_bag()
if "execution" in apps_list or "all" in apps_list:
+ from airflow.jobs.scheduler_job_runner import SchedulerDagBag
+
task_exec_api_app = create_task_execution_api_app()
- task_exec_api_app.state.dag_bag = dag_bag
+ task_exec_api_app.state.dag_bag = SchedulerDagBag()
init_error_handlers(task_exec_api_app)
Review Comment:
My intention is the execution API but it looks like some endpoints used in
the UI that needs the schedulerdagbag are in core in which case I had to
instantiate the schedulardagbag in the endpoint
--
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]