You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ResourceGate for resource-aware dequeue gating
Introduces ResourceGate, an abstract base class that controls whether
queues should be dequeued based on external resource availability (GPU
utilization, CPU load, network bandwidth, etc.). The base class handles
TTL-based caching of check results; subclasses implement #check.
Built-in gates:
- OpenGate: always allows (default)
- ThresholdGate: samples a metric via callback, blocks when >= threshold
Gates are configured per-queue on QueueList via resource_gates hash.
The QueueList#queues method filters out gated queues on every access,
so dequeue adapters always see current resource state. Multiple queues
can share a gate instance to represent a shared resource boundary.
https://claude.ai/code/session_01PG9VitHQLVVWAJmMtFvQcA
0 commit comments