Skip to content

fix(qm): retry a failed retry_job write until shutdown - #1039

Merged
janbjorge merged 2 commits into
mainfrom
fix/retry-job-write
Oct 27, 2026
Merged

janbjorge merged 2 commits into
mainfrom
fix/retry-job-write

Conversation

@janbjorge

Copy link
Copy Markdown
Owner

Agentic

Summary

Testing

  • uv sync --frozen && uv run ruff check . && uv run ruff format . --check && uv run lint-imports && uv run mypy . && uv run pytest passed
  • Additional testing steps: uv run ruff check and uv run ruff format on the touched Python files, uv run mypy pgqueuer/core/qm.py --no-incremental, and uv run pytest -n 0 test/test_retry_requeue.py (32 passed).

Checklist

  • I have read the Contributing Guide
  • I have added or updated tests
  • I have updated documentation if necessary

@janbjorge janbjorge added the Agentic Issue or PR written mainly by an AI agent. Required on all agent-authored contributions. label Oct 24, 2026
@janbjorge
janbjorge force-pushed the fix/retry-job-write branch from 76b5f6b to cea4a18 Compare October 26, 2026 22:00
A transient failure while persisting RetryRequested was recorded as a
terminal failure, so the handler never ran again. Keep the job picked
and heartbeating and retry the write. Shutdown leaves the row picked
for stale recovery.

Fixes #1030
@janbjorge
janbjorge force-pushed the fix/retry-job-write branch from cea4a18 to 9d33811 Compare October 27, 2026 10:28
@janbjorge
janbjorge merged commit 5c2e7c1 into main Oct 27, 2026
21 checks passed
@janbjorge
janbjorge deleted the fix/retry-job-write branch October 27, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Agentic Issue or PR written mainly by an AI agent. Required on all agent-authored contributions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A transient retry_job failure turns a requested retry into a terminal failure

1 participant