Repository navigation
Conversation
Mantisus
marked this pull request as draft
December 3, 2026 14:59
Mantisus
force-pushed
the
fix-timeouts-handling
branch
from
December 3, 2026 23:36
4c9bb81 to
51f63d3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The crawler now makes one attempt at each call to its request manager and session pool, such as fetching the next request, marking it as handled, giving it back or taking a session. Each call, giving back a request deferred by a
RequestThrottledErrorincluded, getsinternal_timeoutto finish. The SQL and Redis backends retry transient errors themselves, and a custom request manager or session pool should do the same.When the handling of a failed request times out, such as in a slow
error_handler, the crawler now retries the request if it can still be retried, counts the retry, and retires the session of aSessionError. A timed-outfailed_request_handlerlogs a warning and the crawl goes on. Any other timeout still ends the crawl. The crawler also counts a failed request in its statistics before thefailed_request_handlerruns, so a handler that raises no longer leaves it uncounted.Issues
Testing
wait_for.✍️ Drafted by Claude Code