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

Method poll_once

app/services/scheduler_service.py:104–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 account_id=account_id,
103 action="startup_check",
104 stage="bootstrap",
105 status="success",
106 message="启动检查通过",
107 )
108 except GlmDeskError as exc:
109 self.state_service.set_account_status(
110 account_id,
111 status="expired",
112 message=exc.message,
113 )
114 self.runtime_logs.log_account_event(
115 account_id=account_id,
116 action="startup_check",
117 stage="bootstrap",
118 status="failed",
119 message=exc.message,
120 details=exc.details,
121 level=logging.WARNING,
122 )
123 except Exception as exc: # pragma: no cover - defensive startup check
124 self.state_service.set_account_status(
125 account_id,
126 status="error",
127 message=str(exc),
128 )
129 logger.exception("account startup check failed for %s: %s", account_id, exc)

Callers 1

_run_loopMethod · 0.95

Calls 6

_scheduled_run_keyMethod · 0.95
_already_ran_scheduleMethod · 0.95
start_account_flowMethod · 0.95
get_accountMethod · 0.80
list_accountsMethod · 0.45

Tested by

no test coverage detected