Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The crawler is overlap when running 2 crawler for 2 URLS at same time. #1

Open
phuclh opened this issue Dec 4, 2021 · 1 comment
Open

Comments

@phuclh
Copy link

phuclh commented Dec 4, 2021

When starting 2 crawlers (A and B) to crawl 2 URLs with setTotalCrawlLimit(100) at the same time. The queues share the same total amount of crawl (100) and sometimes crawler A crawls URL of crawler B and vice versa.

That behavior doesn't happen when using ArrayCrawlQueue queue (the default one).

Moreover, when calling getProcessedUrlCount method, it always returns a negative number.

@insign
Copy link
Owner

insign commented Dec 6, 2021

I already made a bunch of changes. This was only a beginning, so... can you please make a PR with some fixes?

Thanks for you time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants