Closed nazarhussain closed 10 years ago
Superworker jobs never touch Redis and are stored as ActiveRecord records instead, so you can't expect them to initialize them like normal Sidekiq jobs. You'll need to use perform_async, which should be very doable. Your code could be rewritten like this, for example:
superworker = "#{actor}SuperWorker".constantize
superworker.perform_async("#{event}", actor_id)
Hi,
In my project I am using sidekiq in a custom way. I was not calling
perform_async
on workers, instead was directly pushing jobs to redis server.It was working perfectly fine with normal sidekiq workers. But when I use the same method with superworkers it gives me following error:
Can you explain me the way I can interact with superworkers using sidekiq client not the actual worker class.