(task_id: str = "", user_id: str = "")
| 2260 | |
| 2261 | def _finish_daily_task(task_id: str) -> None: |
| 2262 | with _DAILY_TASK_LOCK: |
| 2263 | task = _DAILY_TASKS.get(task_id) |
| 2264 | if not task: |
| 2265 | return |
| 2266 | task["status"] = "running" |
| 2267 | task["started_at"] = _task_timestamp() |
| 2268 | task["updated_at"] = task["started_at"] |
| 2269 | user_id = str(task["user_id"]) |
| 2270 | days = int(task.get("days") or 1) |
nothing calls this directly
no test coverage detected