From 82506a74e8f6584fb38991621375fac01d55cdc3 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 10 May 2016 16:01:24 -0700 Subject: [PATCH] set process_expiration by default without this, the job query fails with field='process_expiration' is unrecognized --- src/job.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/job.js b/src/job.js index 5a81cbb..1a53e1e 100644 --- a/src/job.js +++ b/src/job.js @@ -36,6 +36,7 @@ export default class Job extends events.EventEmitter { payload: this.payload, priority: this.priority, timeout: this.timeout, + process_expiration: new Date(0), // use epoch so the job query works created_at: new Date(), attempts: 0, max_attempts: this.maxAttempts,