From 5b6a119795683792c079c410525f4a3a01730439 Mon Sep 17 00:00:00 2001 From: Tom Grossman Date: Wed, 1 Jan 2020 15:19:22 +0200 Subject: [PATCH] queue.clean should clean job logs as well https://github.com/OptimalBits/bull/issues/1599 --- lib/commands/cleanJobsInSet-1.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands/cleanJobsInSet-1.lua b/lib/commands/cleanJobsInSet-1.lua index 88e9f020d..0a3e75536 100644 --- a/lib/commands/cleanJobsInSet-1.lua +++ b/lib/commands/cleanJobsInSet-1.lua @@ -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