Skip to content

Fix retry log time and back off while idle - #29

Merged
hellopablo merged 2 commits into
feature/pre-new-adminfrom
fix/worker-retry-log-and-idle-backoff-pre-new-admin
Nov 2, 2026
Merged

hellopablo merged 2 commits into
feature/pre-new-adminfrom
fix/worker-retry-log-and-idle-backoff-pre-new-admin

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Backport of #28 to feature/pre-new-admin. Only the Work.php fix is included; Work.php is identical on both branches, so the commit cherry-picks cleanly.

What

  • RETRY log line: it printed the job's old available_at, because the worker discarded the job returned by retryJob(). It now prints the new due time.
  • Idle backoff: an idle worker slept for a fixed QUEUE_WORKER_WAIT_TIME. It now doubles the wait on each empty poll, up to 5000ms (Work::MAX_WAIT_TIME), and starts again after a job.

Behaviour change

A job pushed to an idle worker can now wait up to about five seconds before it is picked up, where before it waited about half a second.

Testing

php -l passes. The change is in the worker loop, which needs a database, so it has not been run against a live worker.

🤖 Generated with Claude Code

hellopablo and others added 2 commits November 2, 2026 20:51
The RETRY line printed the job's old available_at, because the worker
discarded the job returned by retryJob(). It now prints the new due time.

An idle worker slept for a fixed QUEUE_WORKER_WAIT_TIME. It now doubles
the wait on each empty poll, up to 5000ms, and starts again after a job,
as the README described.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
migration_numbering.yml still pinned COMPOSER_ROOT_VERSION to dev-develop,
so composer install could not resolve on this branch: module-find-replace
requires module-queue dev-feature/pre-new-admin, which conflicts with a
root declared as dev-develop. build_and_test.yml already uses the right
version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@hellopablo
hellopablo merged commit ce0110c into feature/pre-new-admin Nov 2, 2026
5 checks passed
@hellopablo
hellopablo deleted the fix/worker-retry-log-and-idle-backoff-pre-new-admin branch November 2, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant