Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d797f1b

Browse files
author
jamesdotcom
committed
allow timeout to be set via env var
1 parent 9dc88c5 commit d797f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ config.tasks = {
193193
// ['high,low'] is one worker working 2 queues
194194
queues: ['default'],
195195
// how long to sleep between jobs / scheduler checks
196-
timeout: 500000,
196+
timeout: process.env.TASK_TIMEOUT || 5000,
197197
// What redis server should we connect to for tasks / delayed jobs?
198198
redis: config.redis
199199
};

0 commit comments

Comments
 (0)