Set job concurrency to reduce performance issue

This commit is contained in:
syuilo 2019-07-01 20:37:26 +09:00
parent d764316708
commit ed0070c470
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ const jobs = {
export default function(q: Bull.Queue) { export default function(q: Bull.Queue) {
for (const [k, v] of Object.entries(jobs)) { for (const [k, v] of Object.entries(jobs)) {
q.process(k, v as any); q.process(k, 16, v as any);
} }
} }