Skip to content

Commit

Permalink
Merge pull request #1601 from tomgrossman/develop
Browse files Browse the repository at this point in the history
fix: queue.clean should also clean job logs
  • Loading branch information
manast committed Jan 2, 2020
2 parents 4517dab + 5b6a119 commit 081b37f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/commands/cleanJobsInSet-1.lua
Expand Up @@ -37,6 +37,7 @@ for _, job in ipairs(jobs) do
redis.call("ZREM", KEYS[1], job)
end
redis.call("DEL", jobKey)
redis.call("DEL", jobKey .. ":logs")
deletedCount = deletedCount + 1
table.insert(deleted, job)
end
Expand Down

0 comments on commit 081b37f

Please sign in to comment.