Expand description
Queue classes (spec 3.2 §7.9).
Priority is a queue (§6 D-5): the kernel runs one DurableWorker per QueueClass,
each with its own fallback poll interval (§13 Q2). A worker sleeps until the earliest
not_before deadline in its queue, and enqueue and wake notify it, so the poll only
catches runs another process enqueued (§10 S3).
Phase 2 adds attention and resources (§7.9): Quotas per partition (max running, max
queued, a daily spend cap), QuietHours through the run’s not_before, cost-aware
admission against the partition’s daily spend, and preemption of the youngest
background run when an interactive one finds its partition at quota.
Structs§
- Quiet
Hours - A daily local-time window in which proactive and maintenance processes never start (spec 3.2 §7.5, §7.9, K-I11); interactive and approval-woken runs always may.
- Quotas
- A partition’s quotas (spec 3.2 §7.9): enforced at admission, they bound each partition
within a queue so none starves another (§13 Q2).
Noneleaves a quota unlimited.
Enums§
- Queue
Class - A priority class: the run-store queue a process waits in and the worker that claims it (spec 3.2 §7.9).