Skip to content

proper resizing of failed item queue#167

Merged
gresrun merged 1 commit into
gresrun:masterfrom
uberall:fail-queue-max-items-resize
Dec 30, 2021
Merged

proper resizing of failed item queue#167
gresrun merged 1 commit into
gresrun:masterfrom
uberall:fail-queue-max-items-resize

Conversation

@bp-FLN

@bp-FLN bp-FLN commented Apr 19, 2020

Copy link
Copy Markdown
Contributor

the number of items to keep in the failed queue can not be downsized. the problem is that we always only remove max. 1 item with the ltrim. the fix is to trim the list to exactly the size we want.
we also don't need to check the size of the failed queue before trimming, as we can simply ltrim all the time now.

@bp-FLN
bp-FLN force-pushed the fail-queue-max-items-resize branch from f0fa560 to 48db99f Compare April 19, 2020 18:11
@coveralls

coveralls commented Apr 19, 2020

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 71.024% when pulling 48db99f on uberall:fail-queue-max-items-resize into b55a7c8 on gresrun:master.

@gresrun
gresrun merged commit 937b11c into gresrun:master Dec 30, 2021
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.

3 participants