Displaying 1 result from an estimated 1 matches for "schedule_every".
2007 May 06
0
Initializing a Scheduler
...help would be appreciated.
Here is the StartCron.rb file
[code]
require "rubygems"
require ''openwfe/util/scheduler''
class StartCron
def StartCron.run
OpenWFE.scheduler = Scheduler.new
OpenWFE.scheduler.start
# Simple usage
OpenWFE.scheduler.schedule_every(''2s'') { p ''every 2 seconds'' }
OpenWFE.scheduler.join
end
end
[/code]
This runs fine standalone.
Lee
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscrib...