fix(очередь): нулевой или отрицательный шаг keepalive не крутит цикл без пауз

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-10-28 10:38:31 +10:00
co-authored by Claude Opus 5.5
parent f240de659d
commit c81969199f
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -61,6 +61,8 @@ try:
QUEUE_KEEPALIVE = float(os.environ.get("AGENT_QUEUE_KEEPALIVE", "20"))
except ValueError:
QUEUE_KEEPALIVE = 20.0
if QUEUE_KEEPALIVE <= 0: # ноль крутил бы keepalive без пауз
QUEUE_KEEPALIVE = 20.0
_waiting = 0