settings.py 682 B

12345678910111213141516
  1. from core_shared import ServiceSettings
  2. class RuntimeServiceSettings(ServiceSettings):
  3. service_name: str = "runtime-service"
  4. service_port: int = 8003
  5. database_url: str = "sqlite:///./runtime_service.db"
  6. workflow_service_url: str = "http://127.0.0.1:8002"
  7. tool_service_url: str = "http://127.0.0.1:8004"
  8. model_gateway_service_url: str = "http://127.0.0.1:8005"
  9. code_runner_service_url: str = "http://127.0.0.1:8006"
  10. knowledge_service_url: str = "http://127.0.0.1:8012"
  11. knowledge_service_timeout_seconds: float = 10.0
  12. worker_poll_interval_seconds: float = 1.0
  13. worker_lease_seconds: int = 300
  14. worker_max_idle_cycles: int | None = None