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

Fix potential for pending list never being processed #433

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

ikreymer
Copy link
Member

Due to an optimization, numPending() call assumed that queueSize() would be called to update cached queue size. However, in the current worker code, this is not the case. Remove cacheing queue size and just check queue size in numPending(), to ensure pending list is always processed.

Perhaps want to port this to a 0.12.2 release, as this addresses an edge case after exclusions where pending URLs remain but are not reprocessed.

…s always called before numPending():

this could result in a loop where pendings urls are not being processed in worker loop since
only numPending() is called
@ikreymer ikreymer requested a review from tw4l November 12, 2023 18:01
Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@tw4l
Copy link
Member

tw4l commented Nov 13, 2023

And I agree, porting to 0.12.2 seems like a good idea :)

@ikreymer
Copy link
Member Author

And I agree, porting to 0.12.2 seems like a good idea :)

Will open a follow-up PR for 0.12.2

@ikreymer ikreymer merged commit 0d51e03 into dev-1.0.0 Nov 13, 2023
4 checks passed
@ikreymer ikreymer deleted the num-pending-always-check-queue branch November 13, 2023 17:31
ikreymer added a commit that referenced this pull request Nov 14, 2023
Backport of #433 to 0.12.x.

Bump version to 0.12.2
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