Skip to content

Commit

Permalink
Merge pull request #124 from ghosind/master
Browse files Browse the repository at this point in the history
Fix issue #77
  • Loading branch information
lykmapipo committed Oct 29, 2018
2 parents efab8a8 + 283da91 commit 294ce2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -908,7 +908,8 @@ Queue.prototype.schedule = function (when, job, done) {

function prepareJobDefinition(when, job, next) {
var jobDefinition = _.extend(job.toJSON(), {
backoff: job._backoff
backoff: job._backoff,
removeOnComplete: job._removeOnComplete
});

next(null, when, job, jobDefinition);
Expand Down

0 comments on commit 294ce2b

Please sign in to comment.