settings.py 783 B

123456789101112131415161718
  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. human_service_url: str = "http://127.0.0.1:8011"
  11. human_service_timeout_seconds: float = 10.0
  12. knowledge_service_url: str = "http://127.0.0.1:8012"
  13. knowledge_service_timeout_seconds: float = 10.0
  14. worker_poll_interval_seconds: float = 1.0
  15. worker_lease_seconds: int = 300
  16. worker_max_idle_cycles: int | None = None