settings.py 883 B

1234567891011121314151617181920
  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. event_service_url: str = "http://127.0.0.1:8013"
  15. event_service_timeout_seconds: float = 5.0
  16. worker_poll_interval_seconds: float = 1.0
  17. worker_lease_seconds: int = 300
  18. worker_max_idle_cycles: int | None = None