MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _log_feedback_event

Function _log_feedback_event

deployments/desktop/shared/agents.py:2274–2309  ·  view source on GitHub ↗
(
    *,
    user_id: str,
    push_id: str,
    paper_number: int,
    paper: Dict[str, Any],
    action: str,
    action_type: str,
    category: str,
)

Source from the content-addressed store, hash-verified

2272 arxiv_categories = task.get("arxiv_categories")
2273 conferences = task.get("conferences")
2274 journals = task.get("journals")
2275 target_date = task.get("target_date")
2276
2277 try:
2278 result = run_daily_push(
2279 user_id,
2280 days=days,
2281 limit_per_source=limit_per_source,
2282 arxiv_categories=arxiv_categories,
2283 conferences=conferences,
2284 journals=journals,
2285 target_date=target_date,
2286 progress_callback=_make_daily_progress_callback(task_id),
2287 )
2288 except Exception as exc: # pragma: no cover - exercised through GUI/server boundary
2289 with _DAILY_TASK_LOCK:
2290 task = _DAILY_TASKS.get(task_id)
2291 if task:
2292 task["status"] = "failed"
2293 task["error"] = str(exc)
2294 task["completed_at"] = _task_timestamp()
2295 task["updated_at"] = task["completed_at"]
2296 return
2297
2298 with _DAILY_TASK_LOCK:
2299 task = _DAILY_TASKS.get(task_id)
2300 if task:
2301 task["status"] = "completed"
2302 task["result"] = result.get("result")
2303 task["push"] = result.get("push")
2304 task["completed_at"] = _task_timestamp()
2305 task["updated_at"] = task["completed_at"]
2306
2307
2308def start_daily_push_task(
2309 user_id: str,
2310 days: int = 1,
2311 limit_per_source: Optional[int] = None,
2312 arxiv_categories: Optional[Iterable[Any]] = None,

Callers 1

submit_gui_feedbackFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected