Update queue setting
This commit is contained in:
parent
46c258d77a
commit
4f2d52697d
1 changed files with 2 additions and 2 deletions
|
@ -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 }, () => {});
|
||||||
|
|
Loading…
Reference in a new issue