Being able to debug the lua scripts proved to be paramout while building out version 7. Since logging slows down the processing it is turned off by default.
While debugging the issues from earlier versions I found it difficult to debug the lua script. Sure you can enter
redis-cli monitor and watch what is happening in redis but it doesn’t give you any context.
For me it was important to learn in what order and more specifically in what script changes took place.
SidekiqUniqueJobs.configure do |config| config.debug_lua = ENV["DEBUG_LUA"] == "true" end
It is a