repo_description: Codex/ChatGPT multiple account load balancer & proxy with usage tracking, dashboard, and OpenCode-compatible endpoints
repo_topics: api-proxy chatgpt codex dashboard fastapi load-balancer multiple-accounts oauth openai openclaw opencode python rate-limit sqlalchemy usage-tracking
code: from __future__ import annotations
  
  from importlib import import_module
  
  shutdown_state = import_module("app.core.shutdown")
  
  
  def __getattr__(name: str) -> bool:
      if name == "_draining":
          return bool(getattr(shutdown_state, "_draining"))
      raise AttributeError(name)
  