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,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user