Permalink
Browse files

Merge pull request #155 from Jellyfrog/issue-97

Removing redis log keys when job is removed
  • Loading branch information...
2 parents 543dd51 + 5452c97 commit 4cfce7fb128b12191dd42b954bfa0162eb026511 @tj tj committed Dec 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/queue/job.js
View
@@ -420,6 +420,7 @@ Job.prototype.attempts = function(n){
Job.prototype.remove = function(fn){
this.removeState();
getSearch().remove(this.id);
+ this.client.del('q:job:' + this.id + ':log', noop);
this.client.del('q:job:' + this.id, fn || noop);
return this;
};

0 comments on commit 4cfce7f

Please sign in to comment.