fix(robomp): promote deferred events on periodic sweep

Ran deferred-submission promotion on an independent timer in addition to the empty-queue path, so a sustained ordinary queue can no longer starve a rate-limited submitter after their rolling window frees. Added ROBOMP_DEFERRED_PROMOTION_SCAN_SECONDS to tune or disable the sweep.

Fixes #5882
This commit is contained in:
roboomp
2026-07-17 17:33:23 +00:00
parent aecef46436
commit 4d494cc512
4 changed files with 84 additions and 4 deletions
+3
View File
@@ -150,6 +150,9 @@ ROBOMP_RATE_LIMIT_WINDOW_SECONDS=3600
ROBOMP_RATE_LIMIT_DEFAULT=3
ROBOMP_RATE_LIMIT_CONTRIBUTOR=10
ROBOMP_RATE_LIMIT_UNLIMITED=
# How often (seconds) deferred events are swept back into the queue as windows
# free up, independent of queue depth. Set to 0 to disable the periodic sweep.
ROBOMP_DEFERRED_PROMOTION_SCAN_SECONDS=60
# =============================================================================