feat(webapp): gate worker dequeues by worker queue via env var#4030
feat(webapp): gate worker dequeues by worker queue via env var#4030ericallam wants to merge 1 commit into
Conversation
Add RUN_ENGINE_DEQUEUE_DISABLED_WORKER_QUEUES: a comma-separated list of worker queues (or base regions, which also cover the :scheduled split) for which the engine API refuses worker dequeue requests and returns no work, so those runs stay queued instead of being handed to workers that cannot run them. Unset means no gating. Blocked dequeues increment the run_engine.dequeue.blocked otel counter, tagged by worker_queue and region.
WalkthroughA new dequeue gate is added for the webapp's run engine. An optional environment variable 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds a
RUN_ENGINE_DEQUEUE_DISABLED_WORKER_QUEUESsetting that refuses worker dequeue requests for the listed worker queues (or base regions), so their runs stay queued instead of being handed to workers that can't run them. Blocked dequeues are counted via arun_engine.dequeue.blockedOTel counter (labeled byworker_queueandregion).