From 7d41e980c90c7511f78a7645c51a52ea67a74322 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 24 Jun 2022 12:17:39 +0800 Subject: [PATCH] FIX: Uninitialized class variable error in sidekiq (#17227) Follow-up to 4199ada1ce341212e3d2d4890074db9de018d7a4 --- app/jobs/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/base.rb b/app/jobs/base.rb index 83b53326959..d38e57fcd26 100644 --- a/app/jobs/base.rb +++ b/app/jobs/base.rb @@ -100,7 +100,7 @@ module Jobs @@log_queue ||= Queue.new - if !@@log_thread || !@@log_thread.alive? + if !defined?(@@log_thread) || !@@log_thread.alive? @@log_thread = Thread.new do loop do @@logger << @@log_queue.pop