chore: auto release commit (2026-09-12 15:19:25)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
All checks were successful
技能自动化发布 / release (push) Successful in 5s
This commit is contained in:
@@ -264,9 +264,12 @@ async def _run_remind_async(*, seconds: int) -> dict[str, Any]:
|
|||||||
"""
|
"""
|
||||||
真实平台会推送到任务中心 UI 并支持取消;
|
真实平台会推送到任务中心 UI 并支持取消;
|
||||||
"""
|
"""
|
||||||
|
log = _get_task_logger()
|
||||||
todos = todo_service.get_current_remind_todos()
|
todos = todo_service.get_current_remind_todos()
|
||||||
|
log.info("[task]remind todos count: %s", len(todos))
|
||||||
for todo in todos:
|
for todo in todos:
|
||||||
todo_service.mark_done(todo.id)
|
todo_service.mark_done(todo.id)
|
||||||
|
log.info("[task]remind todos : %s", todo.title)
|
||||||
emit(f"提醒待办 {todo.title}", skill=SKILL_SLUG, stage="remind")
|
emit(f"提醒待办 {todo.title}", skill=SKILL_SLUG, stage="remind")
|
||||||
summary = todo_service.stats()
|
summary = todo_service.stats()
|
||||||
return {"remind": True, "duration_seconds": len(todos), "stats": summary}
|
return {"remind": True, "duration_seconds": len(todos), "stats": summary}
|
||||||
|
|||||||
Reference in New Issue
Block a user