mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-15 15:32:40 +00:00
mark_trace_batch_as_failed always hit the non-ephemeral endpoint, causing 404s when called on ephemeral batches — the same class of endpoint mismatch this branch aims to fix. Add mark_ephemeral_trace_batch_as_failed to PlusAPI and a _mark_batch_as_failed helper on TraceBatchManager that routes based on is_current_batch_ephemeral. Also gate backend_initialized on trace_batch_id being set so the non-first-time path no longer reports success when _initialize_backend_batch actually failed.