Skip to content

fix(throttling-manager): Apply throttling behind a tandem and with retry_on_blocked disabled - #2158

Open
Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:tandem-throttling
Open

fix(throttling-manager): Apply throttling behind a tandem and with retry_on_blocked disabled#2158
Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:tandem-throttling

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

  • Recording a 429 is now separate from the session blocking check and runs regardless of retry_on_blocked, and the crawler resolves its ThrottlingRequestManager through any RequestManagerTandem around it. Both configurations previously dropped the 429 backoff and the robots.txt crawl-delay, while warning that no throttler was in use.

Issues

Testing

  • Added new unit tests

@Mantisus
Mantisus requested a review from janbuchar August 14, 2026 17:38
@Mantisus Mantisus self-assigned this Aug 14, 2026
@janbuchar

Copy link
Copy Markdown
Collaborator

Hi @Mantisus and thanks for the PR! I did a bunch more research in the JS port and figured out a different way around this. It involves changes to the request manager, so it will presumably take more time to pass code review.

Just letting you know so that you don't end up thinking I forgot about this 🙂

@Mantisus Mantisus changed the title fix(throttling-manager): apply throttling behind a tandem and with retry_on_blocked disabled fix(throttling-manager): Apply throttling behind a tandem and with retry_on_blocked disabled Aug 19, 2026
@janbuchar

Copy link
Copy Markdown
Collaborator

@Mantisus feel free to check apify/crawlee#4061 now — in its current state, it should be pretty clear what direction it's headed.

However, it's unlikely that it can be replicated here without breaking changes. @vdusek do you think it makes sense to wait for v2, or should we try and think of a backwards-compatible fix?

@vdusek

vdusek commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

@Mantisus feel free to check apify/crawlee#4061 now — in its current state, it should be pretty clear what direction it's headed.

However, it's unlikely that it can be replicated here without breaking changes. @vdusek do you think it makes sense to wait for v2, or should we try and think of a backwards-compatible fix?

If we manage to make it backward-compatible in a reasonable way, I'd go for it. But if that requires introducing some weird quirks/workarounds, I would wait for next major. Especially considering that, nobody has actually reported this issue, if I'm correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ThrottlingRequestManager silently does nothing in two configurations

4 participants