File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/dstack/_internal/server/background/tasks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
66from sqlalchemy import select , update
77from sqlalchemy .ext .asyncio import AsyncSession
8- from sqlalchemy .orm import joinedload , load_only
8+ from sqlalchemy .orm import joinedload , load_only , selectinload
99
1010from dstack ._internal .core .models .fleets import FleetSpec , FleetStatus
1111from dstack ._internal .core .models .instances import InstanceStatus
@@ -56,7 +56,7 @@ async def process_fleets():
5656 )
5757 .options (
5858 load_only (FleetModel .id , FleetModel .name ),
59- joinedload (FleetModel .instances ).load_only (InstanceModel .id ),
59+ selectinload (FleetModel .instances ).load_only (InstanceModel .id ),
6060 )
6161 .order_by (FleetModel .last_processed_at .asc ())
6262 .limit (BATCH_SIZE )
You can’t perform that action at this time.
0 commit comments