pg-boss 11.1.0 → 11.1.1

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.1.0",
3
+ "version": "11.1.1",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "type": "commonjs",
package/src/timekeeper.js CHANGED
@@ -136,7 +136,7 @@ class Timekeeper extends EventEmitter {
136
136
 
137
137
  const scheduled = schedules
138
138
  .filter(i => this.shouldSendIt(i.cron, i.timezone))
139
- .map(({ name, data, options }) => ({ data: { name, data, options }, singletonKey: name, singletonSeconds: 60 }))
139
+ .map(({ name, key, data, options }) => ({ data: { name, data, options }, singletonKey: `${name}__${key}`, singletonSeconds: 60 }))
140
140
 
141
141
  if (scheduled.length > 0 && !this.stopped) {
142
142
  await this.manager.insert(QUEUES.SEND_IT, scheduled)