MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / clear_payment_cache

Method clear_payment_cache

app/services/account_state.py:354–363  ·  view source on GitHub ↗

Discard QR/payment task cache that should not survive service restarts.

(self)

Source from the content-addressed store, hash-verified

352 account = self.get_account(account_id)
353 account.account_status = status.strip() or "unchecked"
354 account.account_status_message = message.strip()
355 account.account_checked_at = utc_now_iso()
356 return self.update_account(account)
357
358 def _session_path(self, account_id: str):
359 return self.settings.sessions_dir / f"{account_id}.json"
360
361 def _remove_account_artifacts(self, account_id: str) -> None:
362 for root in (self.settings.data_dir / "logs", self.settings.data_dir / "test_runs"):
363 if not root.exists():
364 continue
365 for path in list(root.iterdir()):
366 try:

Callers 1

start_schedulerFunction · 0.80

Calls 4

list_accountsMethod · 0.95
load_sessionMethod · 0.95
save_sessionMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected