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

Limit the concurrency of link checker #952

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Oct 6, 2024

Currently link checker causes Reached heap limit error in CI. This PR tries to fix it.

Currently the link checker checks all <a> tags concurrently (and it also does that recursively if it finds a new page). This PR limits the concurrency to 10 and tries to prevent the memory error.

(This PR also removes the .hash property from URL before visiting. This removes the duplicated checks of URLs which only differ in hash part.)

@kt3k kt3k requested a review from crowlKats October 6, 2024 09:51
@thisisjofrank thisisjofrank self-requested a review October 7, 2024 10:01
@thisisjofrank thisisjofrank merged commit 540e478 into denoland:main Oct 7, 2024
2 checks passed
@kt3k kt3k deleted the link-checker-limit-concurrency branch October 7, 2024 11:05
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

Successfully merging this pull request may close these issues.

2 participants