Skip to content

refactor: Extract per-run crawler state into CrawlerRun - #2377

Open
Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:crawler-run
Open

Mantisus wants to merge 1 commit into
apify:v2from
Mantisus:crawler-run

Conversation

@Mantisus

@Mantisus Mantisus commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Each BasicCrawler.run() call now builds a fresh internal CrawlerRun that holds the state of that run, so nothing has to be reset by hand between runs. There is no change to the public API.

One behaviour changes: the first status update of a repeated run gets previous_state=None in status_message_callback, instead of the last state of the previous run.

Issues

✍️ Drafted by Claude Code

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

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.

1 participant