Repository navigation
v2.1.0
PgQueuer v2.1.0
PgQueuer v2.1.0 caps how many jobs one worker claims by default, stops idle-capacity polling, and fixes CLI, scheduler, and driver shutdown bugs.
No schema changes; pgq upgrade is not needed.
Changed
max_concurrent_tasksnow defaults tomax(100, 2 * batch_size)instead of unlimited, inQueueManager.run,PgQueuer.runandpgq run. A worker no longer claims a whole backlog. Pass a higher value, or0for the old unlimited behavior (#1090).QueueRepositoryPortgainsnext_stale_etaand aconcurrency_limitskeyword oneligible_queued_work. Custom repositories must add both (#1092).- MCP
failed_jobsno longer returns the log rowid(job_idremains), andtracebackis a JSON object instead of a JSON string.queue_statsandthroughput_summaryneed write access (#1094).
Highlights
- A worker at
max_concurrent_tasks, or with every entrypoint at itsconcurrency_limit, no longer re-polls the database every 100 ms. A burst of NOTIFYs costs one dequeue (#1087). - An idle worker wakes about every
heartbeat_timeout / 2while other workers run its entrypoints, so a dead worker's job is re-picked once its heartbeat goes stale (#1092). pgq install,pgq upgrade,pgq sql installandpgq sql upgradefall back toPGQUEUER_DURABILITYandPGQUEUER_WIDEN_IDwhen the flags are not passed (#1089).pgq runno longer crashes on typer 0.29 with Python 3.14;--log-levelis a case-insensitive choice (#1097).- Schedule heartbeats stay alive until an in-flight fetch and its dispatched work finish draining at shutdown (#1083).
AsyncpgPoolDriverno longer raises on exit when its listener connection died, andQueueManager.runraisesFailingListenerErroragain instead of a driver error (#1026).- Long exception tracebacks wrap on the web dashboard.
New Contributors
Full Changelog: v2.0.0...v2.1.0