Merge pull request #10 from ualsweb/claude/info-request-011CUpsVAL55JECKgzbCsAJQ
Fix orchestration saga failure due to schema mismatch and missing pandas
This commit is contained in:
@@ -242,13 +242,20 @@ async def generate_batch_forecast(
|
|||||||
if not inventory_product_ids:
|
if not inventory_product_ids:
|
||||||
logger.info("No products found for forecasting", tenant_id=tenant_id)
|
logger.info("No products found for forecasting", tenant_id=tenant_id)
|
||||||
from app.schemas.forecasts import BatchForecastResponse
|
from app.schemas.forecasts import BatchForecastResponse
|
||||||
|
now = datetime.now(timezone.utc)
|
||||||
return BatchForecastResponse(
|
return BatchForecastResponse(
|
||||||
batch_id=str(uuid.uuid4()),
|
id=str(uuid.uuid4()),
|
||||||
tenant_id=tenant_id,
|
tenant_id=tenant_id,
|
||||||
products_processed=0,
|
batch_name=getattr(request, 'batch_name', f"orchestrator-batch-{datetime.now().strftime('%Y%m%d')}"),
|
||||||
forecasts_generated=0,
|
status="completed",
|
||||||
success=True,
|
total_products=0,
|
||||||
message="No products found for forecasting"
|
completed_products=0,
|
||||||
|
failed_products=0,
|
||||||
|
requested_at=now,
|
||||||
|
completed_at=now,
|
||||||
|
processing_time_ms=0,
|
||||||
|
forecasts=None,
|
||||||
|
error_message=None
|
||||||
)
|
)
|
||||||
|
|
||||||
# Skip rate limiting for service-to-service calls (orchestrator)
|
# Skip rate limiting for service-to-service calls (orchestrator)
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ psycopg2-binary==2.9.10
|
|||||||
# HTTP clients (for service orchestration)
|
# HTTP clients (for service orchestration)
|
||||||
httpx==0.28.1
|
httpx==0.28.1
|
||||||
|
|
||||||
|
# Data processing and ML support
|
||||||
|
pandas==2.2.2
|
||||||
|
numpy==1.26.4
|
||||||
|
|
||||||
# Redis for leader election
|
# Redis for leader election
|
||||||
redis==6.4.0
|
redis==6.4.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user