Feed::Queue
The judge queue.
Constants
Class methods
Instance methods
Enqueues a question.
A question for a pair that is already waiting coalesces into the waiting question.
Raises FullError if the queue is full.
Enqueues an object as a live question for every registered feed's version it is a candidate for.
Sheds the question, with a warning, if the queue is full.
Enqueues a feed's candidates, newest first.
Enqueues nothing if a page of the version's questions is already queued.
Returns true if there is more to enqueue later.
Returns when a judge's pause ends, or nil if it isn't paused.
Pulls the next batch of questions that are due.
The batch is the next question to pull and the questions after it on the same version, up to its judge's batch size. Questions on a paused judge's versions are not pulled.
Returns every question in a batch to waiting.
Each is enqueued again, so duplicates coalesce.
The cap does not apply.
Enqueues a question again, to be asked later.
The cap does not apply.