From 081e05cc00b8e849311699dc1cf247112265be9b Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:19:05 +1100 Subject: [PATCH] Clarify `seen` flags should not be removed when new slots are pushed to the queue --- design/sales.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/design/sales.md b/design/sales.md index fdf02b9..756fd6a 100644 --- a/design/sales.md +++ b/design/sales.md @@ -227,10 +227,11 @@ A paused queue will wait until it is unpaused before continuing to process items in the queue. This prevents unnecessarily popping items off the queue. #### Unpausing the queue -The queue should be unpaused if it was paused and any slots in the queue should -have their `seen` flag cleared, when: -1. availabilities are modified or added -2. slots are pushed to the queue +When availabilities are modified or added, the queue should be unpaused if it +was paused and any slots in the queue should have their `seen` flag cleared. +Additionally, when availabilities are modified or added, the queue should be +unpaused if itw as paused, however the `seen` flags of existing queue items +should not be cleared. #### Queue workers Each time an item in the queue is processed, it is assigned to a workers. The