From c1048fb2cf3564ce9d1e7502596daf7359dc1b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Lled=C3=B3?= Date: Wed, 15 May 2024 16:39:22 +0200 Subject: [PATCH] Properly register workers --- lib/3scale/backend/worker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/3scale/backend/worker.rb b/lib/3scale/backend/worker.rb index cfc99d8d..ba2718db 100644 --- a/lib/3scale/backend/worker.rb +++ b/lib/3scale/backend/worker.rb @@ -74,11 +74,11 @@ def perform(job) end def register_worker - redis.sadd(:workers, self.class.name) + redis.sadd(:workers, self.to_s) end def unregister_worker - redis.srem(:workers, self.class.name) + redis.srem(:workers, self.to_s) end def hostname