pg-boss 10.0.0-beta10 → 10.0.0-beta11
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 +1 -1
- package/src/attorney.js +0 -1
- package/src/plans.js +2 -0
package/package.json
CHANGED
package/src/attorney.js
CHANGED
|
@@ -187,7 +187,6 @@ function assertPostgresObjectName (name) {
|
|
|
187
187
|
|
|
188
188
|
function assertQueueName (name) {
|
|
189
189
|
assert(typeof name === 'string', 'Name must be a string')
|
|
190
|
-
assert(name.length <= 50, 'Name cannot exceed 50 characters')
|
|
191
190
|
assert(/[\w-]/.test(name), 'Name can only contain alphanumeric characters, underscores, or hyphens')
|
|
192
191
|
}
|
|
193
192
|
|
package/src/plans.js
CHANGED
|
@@ -232,6 +232,7 @@ function createPrimaryKeyArchive (schema) {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
function createIndexJobPolicyShort (schema) {
|
|
235
|
+
// todo: how to combine these policies with singleton key?
|
|
235
236
|
return `CREATE UNIQUE INDEX job_policy_short ON ${schema}.job (name) WHERE state = '${JOB_STATES.created}' AND policy = '${QUEUE_POLICIES.short}'`
|
|
236
237
|
}
|
|
237
238
|
|
|
@@ -248,6 +249,7 @@ function createIndexJobThrottleOn (schema) {
|
|
|
248
249
|
}
|
|
249
250
|
|
|
250
251
|
function createIndexJobThrottleKey (schema) {
|
|
252
|
+
// how useful is this really?
|
|
251
253
|
return `CREATE UNIQUE INDEX job_throttle_key ON ${schema}.job (name, singleton_key) WHERE state <= '${JOB_STATES.completed}' AND singleton_on IS NULL`
|
|
252
254
|
}
|
|
253
255
|
|