Class | ClockWorker |
In: |
lib/workers/clock_worker.rb
|
Parent: | BackgrounDRb::Worker::RailsBase |
Put your code that runs your task inside the do_work method it will be run automatically in a thread. You have access to all of your rails models. You also get logger and results method inside of this class by default.