Skip to content

Commit

Permalink
execute batch when restart session
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Jul 10, 2024
1 parent 52a0d7a commit 0d4fade
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ai/backend/manager/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,6 +2691,9 @@ async def _restart_kernel(kernel: KernelRow) -> None:
SessionStartedEvent(session.id, session.creation_id),
)

if session.session_type == SessionTypes.BATCH:
await self.trigger_batch_execution(session)

async def execute(
self,
session: SessionRow,
Expand Down

0 comments on commit 0d4fade

Please sign in to comment.