fix: Resolve compatibility issue between `SqlStorageClient` and `AdaptivePlaywrightCrawler` by Mantisus · Pull Request #1496 · apify/crawlee-python
vdusek
changed the title
fix: Add special deepcopy logic for
fix: Resolve compatibility issue between SqlStorageClient for compatibility with AdaptivePlaywrightCrawler.SqlStorageClient and AdaptivePlaywrightCrawler
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, lgtm
label
Oct 19, 2025Huh. Huh. While this does fix the issue, I think the root cause is the unfortunate way deepcopy is used when constructing the subcrawlers in adaptive crawler. Could we fix that instead?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment above
Huh. Huh. While this does fix the issue, I think the root cause is the unfortunate way deepcopy is used when constructing the subcrawlers in adaptive crawler. Could we fix that instead?
Updated.
@Pijukatel could you take a look at this as well? You are the most familiar with the AdaptivePlaywrightCrawler. I just want to make sure I'm not missing any important cases where deepcopy was used.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Perhaps we could add a test that shows that adaptive crawler can be instantiated with sql storage client, that wouldn't be too hard 🙂
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters