mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-14 23:12:37 +00:00
Transient failures (None response, 5xx, network errors) during _initialize_backend_batch now retry up to 2 times with a 1s backoff. Non-transient 4xx errors (422 validation, 401 auth) are not retried since the same payload would fail again. If all retries are exhausted, trace_batch_id is cleared per the existing safety net. This runs post-execution when the user has already answered "y" to view traces, so the ~2s worst-case delay is acceptable.