set process_expiration by default
without this, the job query fails with field='process_expiration' is unrecognized
This commit is contained in:
@@ -36,6 +36,7 @@ export default class Job extends events.EventEmitter {
|
|||||||
payload: this.payload,
|
payload: this.payload,
|
||||||
priority: this.priority,
|
priority: this.priority,
|
||||||
timeout: this.timeout,
|
timeout: this.timeout,
|
||||||
|
process_expiration: new Date(0), // use epoch so the job query works
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
attempts: 0,
|
attempts: 0,
|
||||||
max_attempts: this.maxAttempts,
|
max_attempts: this.maxAttempts,
|
||||||
|
|||||||
Reference in New Issue
Block a user