A git host that restarts answers 502 or refuses connections for a few
seconds, and every scan cloning in that window failed with "unexpected
http status code: 502". A clone, fetch or submodule fetch that fails with
a 5xx status, a timeout or a network error is now tried again after 5,
15 and 30 seconds. Authentication failures, 403, 404, bad references and
the download limits fail at once, as before. Each retry is logged at WARN
with the attempt and the wait; the wait hands the worker's other tasks to
another worker (block_in_place), so a waiting retry does not stall them.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p