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.

### Methods

do_work

### Public Instance methods

do_work(args)

[Source]

       # File lib/workers/clock_worker.rb, line 7
    7:   def do_work(args)
    8:     p Time.now
    9:   end

[Validate]