Skip to content

Commit

Permalink
queue.clean should clean job logs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgrossman committed Jan 1, 2020
1 parent 4517dab commit 5b6a119
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 5b6a119

Please sign in to comment.