default created_by to false

This commit is contained in:
2016-05-19 14:11:52 -07:00
parent 59d30bbb0f
commit ca0da61a69

View File

@@ -20,7 +20,7 @@ export default class Job extends events.EventEmitter {
this.index = index; this.index = index;
this.jobtype = type; this.jobtype = type;
this.payload = payload; this.payload = payload;
this.created_by = options.created_by || null; this.created_by = options.created_by || false;
this.timeout = options.timeout || 10000; this.timeout = options.timeout || 10000;
this.maxAttempts = options.max_attempts || 3; this.maxAttempts = options.max_attempts || 3;
this.priority = Math.max(Math.min(options.priority || 10, 20), -20); this.priority = Math.max(Math.min(options.priority || 10, 20), -20);