set process_expiration by default

without this, the job query fails with field='process_expiration' is unrecognized
This commit is contained in:
2016-05-10 16:01:24 -07:00
parent cae02cb0f8
commit 82506a74e8

View File

@@ -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,