Skip to content

fix(basic): reject duplicate crawler IDs - #4522

Open
majhiiii wants to merge 1 commit into
apify:masterfrom
majhiiii:fix/duplicate-crawler-ids
Open

majhiiii wants to merge 1 commit into
apify:masterfrom
majhiiii:fix/duplicate-crawler-ids

Conversation

@majhiiii

@majhiiii majhiiii commented Dec 1, 2026 •

Copy link
Copy Markdown

Two crawlers with the same explicit ID can overwrite each other's state. This rejects the second crawler during construction and releases the ID if construction fails, so callers can correct the options and retry.

Fixes #4516.

I verified that the duplicate-ID regression fails on master and passes with the fix. The six crawler-ID tests and four related BasicCrawler tests passed locally, as did the formatting and whitespace checks.

A broader BasicCrawler run exposed a reused ID in an existing test fixture. The PR gives that fixture a distinct ID, and the updated test passes. I reproduced the other four failures on unmodified master in the same local environment. Windows Application Control blocked Oxlint's native binding, so I committed without the local hook and left lint to CI.

AI assistance: used Codex to draft the patch and run the local checks.

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 1, 2026

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.

Throw when two crawlers are created with the same id

2 participants