From d94774ceecad3676a416aacb0fc57a3792a8a90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 13 Feb 2014 02:44:24 -0800 Subject: [PATCH] force sidekiq resest after fork --- lib/backup_restore.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/backup_restore.rb b/lib/backup_restore.rb index e8821dd80..d2263c4c5 100644 --- a/lib/backup_restore.rb +++ b/lib/backup_restore.rb @@ -131,6 +131,7 @@ module BackupRestore $redis.client.reconnect Rails.cache.reconnect MessageBus.after_fork + Sidekiq.instance_variable_set(:@redis, nil) end def self.backup_tables_count