FIFO queue cannot reduce if no valid quotes exist after filling rquote_used #318
Labels
No labels
bug
config update
documentation
duplicate
enhancement
in dev
input needed
new feature
not in draft
refactor
waiting on docs update
wont-do
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Sirdog/EnduraBot#318
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While working on #292 I discovered that if the
rquote_useddatabase table becomes filled with every message in the defined thequotes_channel_idchannel that, even ifmax_old_quotesis reduced, EnduraBot is still stuck.This is because the method used that reduces the queue when
max_old_quotesis made smaller (see #293) runs after a valid quote is selected and set for insertion intorquote_used. If no valid message is available to select to begin with then the method never runs.Eventually I need to rework this logic so that the queue can reduce itself even in a situation where every quote in the channel is in
rquote_used. The stop gap introduced by #292 is telling the bot operator to clear the queue manually.