diff --git a/app/models/miq_server/worker_management/monitor.rb b/app/models/miq_server/worker_management/monitor.rb index 2e3f21e6d82..ae99df215c5 100644 --- a/app/models/miq_server/worker_management/monitor.rb +++ b/app/models/miq_server/worker_management/monitor.rb @@ -160,6 +160,7 @@ def set_last_change(key, value) end def key_store + require 'dalli' @key_store ||= Dalli::Client.new(MiqMemcached.server_address, :namespace => "server_monitor") end diff --git a/app/models/miq_worker/runner.rb b/app/models/miq_worker/runner.rb index f1d822e06ce..5c8ca9acca8 100644 --- a/app/models/miq_worker/runner.rb +++ b/app/models/miq_worker/runner.rb @@ -398,6 +398,7 @@ def get_messages end def key_store + require 'dalli' @key_store ||= Dalli::Client.new(MiqMemcached.server_address, :namespace => "server_monitor") end