Skip to content

[FIX] queue_job_cron_jobrunner: honour RetryableJobError seconds - #3

Merged
dhongu merged 2 commits into
19.0from
19.0-fix-cron-jobrunner-retry-seconds
Oct 15, 2026
Merged

dhongu merged 2 commits into
19.0from
19.0-fix-cron-jobrunner-retry-seconds

Conversation

@dhongu

@dhongu dhongu commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Fix noted while migrating queue_job_cron_jobrunner to 20.0 (#2), applied on 19.0.

  • On RetryableJobError, the cron runner always postponed the job by 5 seconds and ignored err.seconds and the retry pattern of the job function. It now behaves like queue_job's controller: it uses err.seconds (an int or a (min, max) tuple), then the retry pattern, and keeps the 5 seconds when neither is set.
  • Second commit: pre-commit auto-fixes left over from the 19.0 port. queue_job_cron_jobrunner and queue_job_subscribe are removed from the "not installable" list, and the README of queue_job_subscribe is regenerated.

Version 19.0.1.0.1, readme/HISTORY.md added.

Tests (local; CI does not run on the organisation at the moment): 3 new tests (seconds, retry pattern, default). 8 tests, 0 failures, 0 module warnings, run with -i queue_job_cron_jobrunner --skip-auto-install --test-tags=/queue_job_cron_jobrunner. The seconds and retry pattern tests fail on the previous code. pre-commit run -a is clean.

Not changed (upstream limitations, see ROADMAP): channel capacity and priority are ignored, the started state is not committed, and the runner stops when it reaches limit_time_real_cron.

🤖 Generated with Claude Code

dhongu and others added 2 commits October 15, 2026 09:18
The cron runner always postponed a job raising RetryableJobError by
5 seconds, ignoring err.seconds and the retry pattern of the job
function. Follow queue_job's controller: use err.seconds, then the
retry pattern; keep 5 seconds when neither is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
queue_job_cron_jobrunner and queue_job_subscribe are installable on
19.0: drop them from the excluded addons and regenerate the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhongu
dhongu merged commit 4a9bb80 into 19.0 Oct 15, 2026
4 checks passed
@dhongu
dhongu deleted the 19.0-fix-cron-jobrunner-retry-seconds branch October 15, 2026 08:48
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