Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit c0f8026

Browse files
authored
fix: Missing timestamp updates when terminating sessions (#465)
1 parent 50525e0 commit c0f8026

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changes/465.fix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix missing timestamp updates when terminating sessions

src/ai/backend/manager/registry.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,8 @@ async def _update() -> None:
17211721
.values({
17221722
'status': KernelStatus.TERMINATED,
17231723
'status_info': reason,
1724+
'status_changed': now,
1725+
'terminated_at': now,
17241726
})
17251727
.where(kernels.c.id == kernel['id'])
17261728
)
@@ -1748,6 +1750,7 @@ async def _update() -> None:
17481750
.values({
17491751
'status': KernelStatus.TERMINATING,
17501752
'status_info': reason,
1753+
'status_changed': now,
17511754
'status_data': {
17521755
"kernel": {"exit_code": None},
17531756
"session": {"status": "terminating"},

0 commit comments

Comments
 (0)