qdone 2.0.34-alpha → 2.0.35-alpha
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/commonjs/src/defaults.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.defaults = Object.freeze({
|
|
|
20
20
|
fifo: false,
|
|
21
21
|
disableLog: false,
|
|
22
22
|
includeFailed: false,
|
|
23
|
+
includeDead: false,
|
|
23
24
|
// Enqueue
|
|
24
25
|
groupId: (0, uuid_1.v1)(),
|
|
25
26
|
groupIdPerMessage: false,
|
|
@@ -73,6 +74,8 @@ function getOptionsWithDefaults(options) {
|
|
|
73
74
|
fifo: options.fifo || exports.defaults.fifo,
|
|
74
75
|
sentryDsn: options.sentryDsn || options['sentry-dsn'],
|
|
75
76
|
disableLog: options.disableLog || options['disable-log'] || exports.defaults.disableLog,
|
|
77
|
+
includeFailed: options.includeFailed || options['include-failed'] || exports.defaults.includeFailed,
|
|
78
|
+
includeDead: options.includeDead || options['include-dead'] || exports.defaults.includeDead,
|
|
76
79
|
// Cache
|
|
77
80
|
cacheUri: options.cacheUri || options['cache-uri'] || exports.defaults.cacheUri,
|
|
78
81
|
cachePrefix: options.cachePrefix || options['cache-prefix'] || exports.defaults.cachePrefix,
|
|
@@ -94,7 +97,6 @@ function getOptionsWithDefaults(options) {
|
|
|
94
97
|
killAfter: options.killAfter || options['kill-after'] || exports.defaults.killAfter,
|
|
95
98
|
archive: options.archive || exports.defaults.archive,
|
|
96
99
|
activeOnly: options.activeOnly || options['active-only'] || exports.defaults.activeOnly,
|
|
97
|
-
includeFailed: options.includeFailed || options['include-failed'] || exports.defaults.includeFailed,
|
|
98
100
|
maxConcurrentJobs: options.maxConcurrentJobs || exports.defaults.maxConcurrentJobs,
|
|
99
101
|
maxMemoryPercent: options.maxMemoryPercent || exports.defaults.maxMemoryPercent,
|
|
100
102
|
// Idle Queues
|
|
@@ -105,7 +105,7 @@ class QueueManager {
|
|
|
105
105
|
.filter(({ qname, qrl }) => {
|
|
106
106
|
const isFifo = qname.endsWith('.fifo');
|
|
107
107
|
const isDead = isFifo ? qname.endsWith('_dead.fifo') : qname.endsWith('_dead');
|
|
108
|
-
return !isDead;
|
|
108
|
+
return this.opt.includeDead ? true : !isDead;
|
|
109
109
|
})
|
|
110
110
|
// then icehouse
|
|
111
111
|
.filter(({ qname, qrl }) => !this.keepInIcehouse(qrl, now));
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qdone",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35-alpha",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "qdone",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.35-alpha",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cloudwatch": "3.465.0",
|
package/package.json
CHANGED
package/src/defaults.js
CHANGED
|
@@ -18,6 +18,7 @@ export const defaults = Object.freeze({
|
|
|
18
18
|
fifo: false,
|
|
19
19
|
disableLog: false,
|
|
20
20
|
includeFailed: false,
|
|
21
|
+
includeDead: false,
|
|
21
22
|
|
|
22
23
|
// Enqueue
|
|
23
24
|
groupId: uuidv1(),
|
|
@@ -76,6 +77,8 @@ export function getOptionsWithDefaults (options) {
|
|
|
76
77
|
fifo: options.fifo || defaults.fifo,
|
|
77
78
|
sentryDsn: options.sentryDsn || options['sentry-dsn'],
|
|
78
79
|
disableLog: options.disableLog || options['disable-log'] || defaults.disableLog,
|
|
80
|
+
includeFailed: options.includeFailed || options['include-failed'] || defaults.includeFailed,
|
|
81
|
+
includeDead: options.includeDead || options['include-dead'] || defaults.includeDead,
|
|
79
82
|
|
|
80
83
|
// Cache
|
|
81
84
|
cacheUri: options.cacheUri || options['cache-uri'] || defaults.cacheUri,
|
|
@@ -100,7 +103,6 @@ export function getOptionsWithDefaults (options) {
|
|
|
100
103
|
killAfter: options.killAfter || options['kill-after'] || defaults.killAfter,
|
|
101
104
|
archive: options.archive || defaults.archive,
|
|
102
105
|
activeOnly: options.activeOnly || options['active-only'] || defaults.activeOnly,
|
|
103
|
-
includeFailed: options.includeFailed || options['include-failed'] || defaults.includeFailed,
|
|
104
106
|
maxConcurrentJobs: options.maxConcurrentJobs || defaults.maxConcurrentJobs,
|
|
105
107
|
maxMemoryPercent: options.maxMemoryPercent || defaults.maxMemoryPercent,
|
|
106
108
|
|
|
@@ -104,7 +104,7 @@ export class QueueManager {
|
|
|
104
104
|
.filter(({ qname, qrl }) => {
|
|
105
105
|
const isFifo = qname.endsWith('.fifo')
|
|
106
106
|
const isDead = isFifo ? qname.endsWith('_dead.fifo') : qname.endsWith('_dead')
|
|
107
|
-
return !isDead
|
|
107
|
+
return this.opt.includeDead ? true : !isDead
|
|
108
108
|
})
|
|
109
109
|
// then icehouse
|
|
110
110
|
.filter(({ qname, qrl }) => !this.keepInIcehouse(qrl, now))
|