Improve te panel de control logic
This commit is contained in:
@@ -56,6 +56,7 @@ class Settings(BaseSettings):
|
||||
ORDERS_SERVICE_URL: str = os.getenv("ORDERS_SERVICE_URL", "http://orders-service:8000")
|
||||
PRODUCTION_SERVICE_URL: str = os.getenv("PRODUCTION_SERVICE_URL", "http://production-service:8000")
|
||||
SUPPLIERS_SERVICE_URL: str = os.getenv("SUPPLIERS_SERVICE_URL", "http://suppliers-service:8000")
|
||||
ORCHESTRATOR_SERVICE_URL: str = os.getenv("ORCHESTRATOR_SERVICE_URL", "http://orchestrator-service:8000")
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL: str = os.getenv("LOG_LEVEL", "INFO")
|
||||
|
||||
@@ -95,6 +95,12 @@ class CloneOrchestrator:
|
||||
required=False, # Optional - provides procurement and purchase orders
|
||||
timeout=25.0 # Longer - clones many procurement entities
|
||||
),
|
||||
ServiceDefinition(
|
||||
name="orchestrator",
|
||||
url=os.getenv("ORCHESTRATOR_SERVICE_URL", "http://orchestrator-service:8000"),
|
||||
required=False, # Optional - provides orchestration run history
|
||||
timeout=15.0 # Standard timeout for orchestration data
|
||||
),
|
||||
]
|
||||
|
||||
async def clone_all_services(
|
||||
|
||||
Reference in New Issue
Block a user