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) {
if (queueAvailable) {
return queue.createJob(data)
.retries(4)
.backoff('exponential', 16384) // 16s
.retries(3)
.backoff('exponential', 1000)
.save();
} else {
return handler({ data }, () => {});