socialpandas / sidekiq-superworker

Directed acyclic graphs of Sidekiq jobs
MIT License
438 stars 34 forks source link

Bug - NameError: wrong constant name #37

Open johnmcauley opened 9 years ago

johnmcauley commented 9 years ago

Hey guys,

Trying to get superworker working but get a "NameError: wrong constant name " on initialisation. I see someone had a similar issue here. I declare new workers in a superworkers.rb in initialzers:

Superworker.define(:RecsWorker) do TestWorker.perform_async RecommendationsWorker.perform_async end

I'm using Rails 4.

Thanks,

j

imogenkinsman commented 9 years ago

@johnmcauley your superworkers initialization file shouldn't make perform_async calls. It should look something like this:

Superworker.define(:RecsWorker) do
  TestWorker
  RecommendationsWorker
end