Skip to content

Surface a clearer error when prediction worker is unreachable #168

Description

@roman1887

When a prediction worker is down, the API returns No prediction worker available for this prediction type. Operators have asked for a clearer message that mentions which worker is unreachable and the expected URL.

Where:

  • File: nexus/app/services/prediction_service.py (the select_model and create_pipeline flows)

Acceptance:

  • Error response includes the worker name (e.g., xgboost) and the URL the service tried to reach
  • Message remains user-safe (no stack traces, no credentials)
  • Existing API contract preserved (still HTTP 400)

TESTS (2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions