0
0

Update queue setting

This commit is contained in:
syuilo 2019-02-06 14:53:02 +09:00
parent 46c258d77a
commit 4f2d52697d

View File

@ -34,8 +34,8 @@ function initializeQueue() {
export function createHttpJob(data: any) { export function createHttpJob(data: any) {
if (queueAvailable) { if (queueAvailable) {
return queue.createJob(data) return queue.createJob(data)
.retries(4) .retries(3)
.backoff('exponential', 16384) // 16s .backoff('exponential', 1000)
.save(); .save();
} else { } else {
return handler({ data }, () => {}); return handler({ data }, () => {});