mirror of
https://github.com/open-webui/computer.git
synced 2026-12-01 09:22:45 -05:00
refac
This commit is contained in:
1 parent
f031c479ba
commit
e7afb6cba3
11 files changed
+550
-31
No files matched your search
@@ -160,6 +160,14 @@ async def _finalize(
|
||||
snapshot = {k: v for k, v in record.items() if k != "task"}
|
||||
_prune_completed_locked()
|
||||
|
||||
if snapshot.get("timer_chat_id"):
|
||||
from cptr.utils.timers import set_timer_completion
|
||||
|
||||
try:
|
||||
await set_timer_completion(snapshot, status, error)
|
||||
except Exception:
|
||||
logger.exception("Failed to record timer completion %s", delegation_id)
|
||||
|
||||
injector = _completion_injector_override or _inject_completion
|
||||
try:
|
||||
await injector(snapshot)
|
||||
|
||||
Reference in new issue
Block a user