Skip to content

Commit

Permalink
[orchestration] instantiate HTTPException when service_response shoul…
Browse files Browse the repository at this point in the history
…d not continue. (#2667)

instantiate HTTPExceptiion when service_response should not continue.
  • Loading branch information
BobanL authored Oct 8, 2024
1 parent 38f8dad commit 137083d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion containers/orchestration/app/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ async def call_apis(

if not service_response.should_continue:
call_span.record_exception(
HTTPException, attributes={"status_code": 400}
HTTPException(
status_code=400,
detail=f"Service: {service} returned should_continue",
),
attributes={"status_code": 400},
)
error_detail = f"Service {service} completed, but orchestration cannot continue: {service_response.msg_content}"

Expand Down

0 comments on commit 137083d

Please sign in to comment.