Skip to content

fix(request-loaders): Align request list state saving - #2437

Merged
vdusek merged 1 commit into
apify:v2from
Mantisus:fix-ql-persist-state
Nov 12, 2026
Merged

vdusek merged 1 commit into
apify:v2from
Mantisus:fix-ql-persist-state

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

RequestList.persist_state() no longer raises when the request list has no persist_state_key. It does nothing instead. A failed write now raises from persist_state() rather than only being logged. Both match SitemapRequestLoader.persist_state().

Persisting on PERSIST_STATE events and in close() still logs a failed write as a warning.

Issues

✍️ Drafted by Claude Code

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

@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.

LGTM

@vdusek vdusek changed the title fix(request-loaders): Don't raise from RequestList.persist_state() without a key and raise a failed write fix(request-loaders): Align RequestList.persist_state() errors Nov 12, 2026
@vdusek vdusek changed the title fix(request-loaders): Align RequestList.persist_state() errors fix(request-loaders): Align request list state saving Nov 12, 2026
@vdusek
vdusek merged commit 8070d3a into apify:v2 Nov 12, 2026
42 checks passed
vdusek pushed a commit that referenced this pull request Nov 29, 2026
### Description

`RequestList.persist_state()` no longer raises when the request list has
no `persist_state_key`. It does nothing instead. A failed write now
raises from `persist_state()` rather than only being logged. Both match
`SitemapRequestLoader.persist_state()`.

Persisting on `PERSIST_STATE` events and in `close()` still logs a
failed write as a warning.

### Issues

- Follow-up: #2430

*✍️ Drafted by Claude Code*
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