mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-24 14:30:21 -05:00
refac
This commit is contained in:
1 parent
9221b3b749
commit
7c166fef2a
3 files changed
+5
-3
No files matched your search
@@ -741,6 +741,8 @@ async def idle_check(spec, status, name, namespace, **_):
|
||||
return
|
||||
|
||||
timeout_minutes = spec.get("idleTimeoutMinutes", 30)
|
||||
if timeout_minutes <= 0:
|
||||
return
|
||||
try:
|
||||
last_dt = datetime.fromisoformat(last_activity.replace("Z", "+00:00"))
|
||||
except (ValueError, TypeError):
|
||||
|
||||
Reference in new issue
Block a user