This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-12 00:57:58 -05:00
1 parent f031c479ba
commit e7afb6cba3
11 files changed
+550 -31

No files matched your search

+8
View File
@@ -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)