Displaying 1 result from an estimated 1 matches for "mytestwork".
Did you mean:
mynetwork
2008 Jan 13
2
{worker} after :end-time worker freaks out
...calhost
:environment: development
:schedules:
:mytest_worker:
:doit:
:trigger_args:
:start: <%= Time.now + 1.seconds %>
:end: <%= Time.now + 1.minute %>
:repeat_interval: <%= 10.seconds %>
- - - - - -
mytest_worker.rb
- - - - - -
class MytestWorker < BackgrounDRb::MetaWorker
set_worker_name :mytest_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
@counter=0
end
def doit
@counter += 1
logger.debug("mytest: doit #{@counter} - #{Time.now}")
end
end
-...