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

Function _already_ran

deployments/feishu/webhook-server/scripts/scheduler.py:252–253  ·  view source on GitHub ↗
(state: Dict[str, Any], job_key: str, marker: str)

Source from the content-addressed store, hash-verified

250
251def _already_ran(state: Dict[str, Any], job_key: str, marker: str) -> bool:
252 return str((state.get("jobs") or {}).get(job_key, "")) == marker
253
254
255def _mark_ran(state: Dict[str, Any], job_key: str, marker: str) -> None:
256 state.setdefault("jobs", {})[job_key] = marker

Callers 2

should_run_daily_pushFunction · 0.85
should_run_weekly_reportFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected