timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

fix job failure for stately queues #493

Closed timgit closed 2 months ago

timgit commented 2 months ago

Stately queues are special in how retries are handled. By definition, stately queues will not allow multiple jobs to occupy retry state. Once a stately queues has a job in retry, failing another active job will bypass the retry mechanism and force the job to failed.

Fixes #492

coveralls commented 2 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 7d13fac8df8081992ce613a6312353a1f7e71668 on fix-expiration-stately-queue into f9827ac23de57e6a63a8c4397cc5c1372e910c04 on master.