File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
airflow-core/src/airflow/api_fastapi/core_api/routes/public Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 2424
2525from airflow .api_fastapi .auth .managers .models .resource_details import DagAccessEntity
2626from airflow .api_fastapi .common .db .common import (
27- AsyncSessionDep ,
2827 SessionDep ,
29- paginated_select_async ,
28+ paginated_select ,
3029)
3130from airflow .api_fastapi .common .parameters import QueryLimit , QueryOffset , SortParam
3231from airflow .api_fastapi .common .router import AirflowRouter
6766 Depends (requires_access_backfill (method = "GET" )),
6867 ],
6968)
70- async def list_backfills (
69+ def list_backfills (
7170 dag_id : str ,
7271 limit : QueryLimit ,
7372 offset : QueryOffset ,
7473 order_by : Annotated [
7574 SortParam ,
7675 Depends (SortParam (["id" ], Backfill ).dynamic_depends ()),
7776 ],
78- session : AsyncSessionDep ,
77+ session : SessionDep ,
7978) -> BackfillCollectionResponse :
80- select_stmt , total_entries = await paginated_select_async (
79+ select_stmt , total_entries = paginated_select (
8180 statement = select (Backfill ).where (Backfill .dag_id == dag_id ),
8281 order_by = order_by ,
8382 offset = offset ,
8483 limit = limit ,
8584 session = session ,
8685 )
87- backfills = await session .scalars (select_stmt )
86+ backfills = session .scalars (select_stmt )
8887 return BackfillCollectionResponse (
8988 backfills = backfills ,
9089 total_entries = total_entries ,
You can’t perform that action at this time.
0 commit comments