summaryrefslogtreecommitdiff
path: root/src/queue/index.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-02-06 14:53:02 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-02-06 14:53:02 +0900
commit4f2d52697d5ef9499e00c8c35fbdaacf2277e87d (patch)
tree61a79b496637e64d058c35f1c3a14be7b0ff6b0c /src/queue/index.ts
parent10.82.1 (diff)
downloadsharkey-4f2d52697d5ef9499e00c8c35fbdaacf2277e87d.tar.gz
sharkey-4f2d52697d5ef9499e00c8c35fbdaacf2277e87d.tar.bz2
sharkey-4f2d52697d5ef9499e00c8c35fbdaacf2277e87d.zip
Update queue setting
Diffstat (limited to 'src/queue/index.ts')
-rw-r--r--src/queue/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 161b8f9b24..54c0c13ae4 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -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 }, () => {});