@abtnode/queue 1.16.13-beta-d17a7de4 → 1.16.13-beta-0aac52260
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/lib/index.js +3 -3
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -244,19 +244,19 @@ module.exports = function createQueue({ file, store, onJob, options = {} }) {
|
|
|
244
244
|
try {
|
|
245
245
|
/* eslint-disable no-await-in-loop */
|
|
246
246
|
const jobs = await store.getScheduledJobs();
|
|
247
|
-
|
|
247
|
+
for (const x of jobs) {
|
|
248
248
|
if (x.job && x.id) {
|
|
249
249
|
push(x.job, x.id, false);
|
|
250
250
|
} else {
|
|
251
251
|
logger.info('skip invalid job from db', { job: x });
|
|
252
252
|
}
|
|
253
|
-
}
|
|
253
|
+
}
|
|
254
254
|
} catch (err) {
|
|
255
255
|
console.error(err);
|
|
256
256
|
logger.error('Can not load scheduled jobs', { error: err });
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
await sleep(MIN_DELAY / 2);
|
|
259
|
+
await sleep((MIN_DELAY * 1000) / 2);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.13-beta-
|
|
6
|
+
"version": "1.16.13-beta-0aac52260",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/db": "1.16.
|
|
23
|
-
"@abtnode/util": "1.16.
|
|
22
|
+
"@abtnode/db": "1.16.12",
|
|
23
|
+
"@abtnode/util": "1.16.12",
|
|
24
24
|
"debug": "^4.3.4",
|
|
25
25
|
"fastq": "^1.13.0",
|
|
26
26
|
"uuid": "^8.3.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "e5764f753181ed6a7c615cd4fc6682aacf0cb7cd",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^27.5.1"
|
|
31
31
|
}
|