Bug: hasPendingWork() backoff mismatch with processQueue() #114

Closed
opened 2026-06-06 11:50:08 +00:00 by jmiller · 1 comment
Owner

Audit Finding

Severity: Medium

Issue:
hasPendingWork() uses simple linear retryDelay to check retry eligibility, but processQueue() uses exponential backoff (retryDelay * POW(2, retry_count)). This causes unnecessary queue processing invocations.

Fix: Update retry-eligible check in hasPendingWork() to use the same exponential backoff formula.

Files: QueueProcessor.php

## Audit Finding **Severity:** Medium **Issue:** `hasPendingWork()` uses simple linear `retryDelay` to check retry eligibility, but `processQueue()` uses exponential backoff (`retryDelay * POW(2, retry_count)`). This causes unnecessary queue processing invocations. **Fix:** Update retry-eligible check in `hasPendingWork()` to use the same exponential backoff formula. **Files:** `QueueProcessor.php`
Author
Owner

Branch created: feature/114-bug-haspendingwork-backoff-mismatch-with

git fetch origin
git checkout feature/114-bug-haspendingwork-backoff-mismatch-with
Branch created: [`feature/114-bug-haspendingwork-backoff-mismatch-with`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/114-bug-haspendingwork-backoff-mismatch-with) ```bash git fetch origin git checkout feature/114-bug-haspendingwork-backoff-mismatch-with ```
Sign in to join this conversation.