mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
![Mike Perham](/assets/img/avatar_default.png)
Workers are the user's classes, the threads are now called processors. Add secret sauce to make Rails config much easier. Use a railtie to auto-add app/workers to the autoload path.
6 lines
85 B
Ruby
6 lines
85 B
Ruby
class HardWorker
|
|
def perform(name, count)
|
|
sleep 0.01
|
|
puts 'done'
|
|
end
|
|
end
|