Skip to content

feat(request-loaders)!: Raise in SitemapRequestLoader.mark_request_as_handled for a request it isn't processing - #2421

Open
Mantisus wants to merge 3 commits into
apify:v2from
Mantisus:sitemap-loader-persist-state
Open

Mantisus wants to merge 3 commits into
apify:v2from
Mantisus:sitemap-loader-persist-state

Conversation

@Mantisus

@Mantisus Mantisus commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Description

SitemapRequestLoader.mark_request_as_handled now raises a ValueError for a request the loader isn't processing, as in Crawlee JS. For details, see the upgrade guide.

fetch_next_request doesn't return a URL again while its request is still in progress, for example when several sitemaps list it.

Issues

✍️ Drafted by Claude Code

@Mantisus Mantisus self-assigned this Nov 6, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 6, 2026
@Mantisus
Mantisus requested a review from vdusek November 6, 2026 15:51

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe again could we split this into 2 PRs ? 🙂

  1. feat(request-loaders): Add persist_state() to SitemapRequestLoader
  2. feat(request-loaders)!: Raise in SitemapRequestLoader.mark_request_as_handled for a request it isn't processing

@Mantisus Mantisus changed the title feat(request-loaders)!: Add persist_state() to SitemapRequestLoader and raise for a request it isn't processing feat(request-loaders)!: Raise in SitemapRequestLoader.mark_request_as_handled for a request it isn't processing Nov 9, 2026
@Mantisus
Mantisus force-pushed the sitemap-loader-persist-state branch from c5b65e9 to 8aee396 Compare November 9, 2026 23:18
@Mantisus

Mantisus commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

Maybe again could we split this into 2 PRs ? 🙂

Splited, another PR: #2430

This branch has not been deployed

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

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants