pg-boss 11.0.6 → 11.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "11.0.6",
3
+ "version": "11.0.8",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "type": "commonjs",
@@ -13,8 +13,8 @@
13
13
  "serialize-error": "^8.1.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^22",
17
- "eslint": "^9.36.0",
16
+ "@types/node": "^22.18.8",
17
+ "eslint": "^9.37.0",
18
18
  "luxon": "^3.7.2",
19
19
  "mocha": "^11.7.4",
20
20
  "neostandard": "^0.12.2",
@@ -62,6 +62,6 @@
62
62
  "bugs": {
63
63
  "url": "https://github.com/timgit/pg-boss/issues"
64
64
  },
65
- "homepage": "https://github.com/timgit/pg-boss#readme",
65
+ "homepage": "https://timgit.github.io/pg-boss",
66
66
  "types": "./types.d.ts"
67
67
  }
package/src/manager.js CHANGED
@@ -340,6 +340,7 @@ class Manager extends EventEmitter {
340
340
  singletonNextSlot,
341
341
  expireInSeconds,
342
342
  deleteAfterSeconds,
343
+ retentionSeconds,
343
344
  keepUntil,
344
345
  retryLimit,
345
346
  retryDelay,
@@ -358,6 +359,7 @@ class Manager extends EventEmitter {
358
359
  singletonOffset,
359
360
  expireInSeconds,
360
361
  deleteAfterSeconds,
362
+ retentionSeconds,
361
363
  keepUntil,
362
364
  retryLimit,
363
365
  retryDelay,
package/src/plans.js CHANGED
@@ -943,7 +943,7 @@ function getQueueStats (schema, table, queues) {
943
943
  (count(*) FILTER (WHERE state < '${JOB_STATES.active}'))::int as "queuedCount",
944
944
  (count(*) FILTER (WHERE state = '${JOB_STATES.active}'))::int as "activeCount",
945
945
  count(*)::int as "totalCount",
946
- array_agg(singleton_key) FILTER (WHERE policy IN ('${QUEUE_POLICIES.singleton}','${QUEUE_POLICIES.stately}') AND state IN ('${JOB_STATES.retry}','${JOB_STATES.active}')) as "singletonsActive"
946
+ array_agg(singleton_key) FILTER (WHERE policy IN ('${QUEUE_POLICIES.singleton}','${QUEUE_POLICIES.stately}') AND state = '${JOB_STATES.active}') as "singletonsActive"
947
947
  FROM ${schema}.${table}
948
948
  WHERE name IN (${getQueueInClause(queues)})
949
949
  GROUP BY 1