(self)
| 87 | def check_cached_accounts_once(self) -> None: |
| 88 | for public_account in self.state_service.list_accounts(): |
| 89 | account_id = public_account.id |
| 90 | with self._lock: |
| 91 | if account_id in self._running_accounts: |
| 92 | continue |
| 93 | self._running_accounts.add(account_id) |
| 94 | try: |
| 95 | self.payment_service.bootstrap_account(account_id) |
| 96 | self.state_service.set_account_status( |
| 97 | account_id, |
| 98 | status="valid", |
| 99 | message="启动检查通过", |
| 100 | ) |
| 101 | self.runtime_logs.log_account_event( |
| 102 | account_id=account_id, |
| 103 | action="startup_check", |
| 104 | stage="bootstrap", |
| 105 | status="success", |
nothing calls this directly
no test coverage detected