Skip to content

Commit

Permalink
Properly register workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jlledom committed May 15, 2024
1 parent 054d005 commit c1048fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/3scale/backend/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1048fb

Please sign in to comment.