pg-boss 10.4.0 → 10.4.2

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.
@@ -7,7 +7,17 @@
7
7
  "Bash(done)",
8
8
  "Bash(find:*)",
9
9
  "Bash(npm test:*)",
10
- "mcp__ide__getDiagnostics"
10
+ "mcp__ide__getDiagnostics",
11
+ "WebFetch(domain:github.com)",
12
+ "Bash(npm run build:*)",
13
+ "Bash(npm run tsc:*)",
14
+ "Bash(cut:*)",
15
+ "Bash(grep:*)",
16
+ "WebSearch",
17
+ "WebFetch(domain:docs.npmjs.com)",
18
+ "WebFetch(domain:ankushkun.medium.com)",
19
+ "WebFetch(domain:github.blog)",
20
+ "Bash(ls:*)"
11
21
  ],
12
22
  "deny": [],
13
23
  "ask": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "10.4.0",
3
+ "version": "10.4.2",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "engines": {
package/src/plans.js CHANGED
@@ -792,9 +792,9 @@ function insertJob (schema) {
792
792
  singleton_on,
793
793
  COALESCE(j.dead_letter, q.dead_letter) as dead_letter,
794
794
  CASE
795
- WHEN expire_in IS NOT NULL THEN CAST(expire_in as interval)
795
+ WHEN expire_in IS NOT NULL THEN expire_in::numeric * interval '1s'
796
796
  WHEN q.expire_seconds IS NOT NULL THEN q.expire_seconds * interval '1s'
797
- WHEN expire_in_default IS NOT NULL THEN CAST(expire_in_default as interval)
797
+ WHEN expire_in_default IS NOT NULL THEN expire_in_default::numeric * interval '1s'
798
798
  ELSE interval '15 minutes'
799
799
  END as expire_in,
800
800
  CASE
@@ -880,9 +880,9 @@ function insertJobs (schema) {
880
880
  END as singleton_on,
881
881
  COALESCE("deadLetter", q.dead_letter) as dead_letter,
882
882
  CASE
883
- WHEN "expireInSeconds" IS NOT NULL THEN "expireInSeconds" * interval '1s'
883
+ WHEN "expireInSeconds" IS NOT NULL THEN "expireInSeconds"::numeric * interval '1s'
884
884
  WHEN q.expire_seconds IS NOT NULL THEN q.expire_seconds * interval '1s'
885
- WHEN defaults.expire_in IS NOT NULL THEN CAST(defaults.expire_in as interval)
885
+ WHEN defaults.expire_in IS NOT NULL THEN defaults.expire_in::numeric * interval '1s'
886
886
  ELSE interval '15 minutes'
887
887
  END as expire_in,
888
888
  CASE