pg-boss 11.0.2 → 11.0.3
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/README.md +1 -1
- package/package.json +1 -1
- package/src/plans.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Queueing jobs in Postgres from Node.js like a boss.
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/pg-boss)
|
|
3
|
+
[](https://badge.fury.io/js/pg-boss)
|
|
4
4
|
[](https://github.com/timgit/pg-boss/actions/workflows/ci.yml)
|
|
5
5
|
[](https://coveralls.io/github/timgit/pg-boss?branch=master)
|
|
6
6
|
|
package/package.json
CHANGED
package/src/plans.js
CHANGED
|
@@ -697,7 +697,7 @@ function insertJobs (schema, { table, name, returnId = true }) {
|
|
|
697
697
|
j.start_after,
|
|
698
698
|
"singletonKey",
|
|
699
699
|
CASE
|
|
700
|
-
WHEN "singletonSeconds" IS NOT NULL THEN 'epoch'::timestamp + '1s'::interval * ("singletonSeconds" * floor(( date_part('epoch', now()) + "singletonOffset") / "singletonSeconds" ))
|
|
700
|
+
WHEN "singletonSeconds" IS NOT NULL THEN 'epoch'::timestamp + '1s'::interval * ("singletonSeconds" * floor(( date_part('epoch', now()) + COALESCE("singletonOffset",0)) / "singletonSeconds" ))
|
|
701
701
|
ELSE NULL
|
|
702
702
|
END as singleton_on,
|
|
703
703
|
COALESCE("expireInSeconds", q.expire_seconds) as expire_seconds,
|