mirror of
https://github.com/codex-storage/codex-research.git
synced 2025-02-03 22:36:48 +00:00
Clarify seen
flags should not be removed when new slots are pushed to the queue
This commit is contained in:
parent
046b0cd417
commit
081e05cc00
@ -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.
|
in the queue. This prevents unnecessarily popping items off the queue.
|
||||||
|
|
||||||
#### Unpausing the queue
|
#### Unpausing the queue
|
||||||
The queue should be unpaused if it was paused and any slots in the queue should
|
When availabilities are modified or added, the queue should be unpaused if it
|
||||||
have their `seen` flag cleared, when:
|
was paused and any slots in the queue should have their `seen` flag cleared.
|
||||||
1. availabilities are modified or added
|
Additionally, when availabilities are modified or added, the queue should be
|
||||||
2. slots are pushed to the queue
|
unpaused if itw as paused, however the `seen` flags of existing queue items
|
||||||
|
should not be cleared.
|
||||||
|
|
||||||
#### Queue workers
|
#### Queue workers
|
||||||
Each time an item in the queue is processed, it is assigned to a workers. The
|
Each time an item in the queue is processed, it is assigned to a workers. The
|
||||||
|
Loading…
x
Reference in New Issue
Block a user