Ruby ruffus scheduler doesn't work on Sunday's

Hi,

I have a process that must run on Sunday but by some unknown reason it
doesn’t work, here is the code that I’m using:

require ‘rubygems’
require ‘rufus/scheduler’
require “weekly”

class WeeklyScheduler
def initialize()
@cron_run_weekly = ‘22 7 * * 7’
end
def start(count)
scheduler =Rufus::Scheduler.new
scheduler.start

#-----------------------------------------------------------------------
job = scheduler.schedule @cron_run_weekly do
day_r = Time.now
puts “Weekly process start for day #{day_r}”
puts “Running weekly!”
process = Weekly.new(date)
process.run
end
scheduler.join
end
end

I tried with this cron’s strings too:

@cron_run_weekly = ‘22 7 * * Sun’
@cron_run_weekly = ‘22 7 * * 0’

but It didn’t run. I’m on an Window Server machine.

Thanks

On Sun, Aug 10, 2008 at 9:50 PM, Pablo Q. [email protected] wrote:

I have a process that must run on Sunday but by some unknown reason it
doesn’t work, here is the code that I’m using:

Hi Pablo,

this was probably fixed in release 1.0.6 of the rufus-scheduler gem :

http://github.com/jmettraux/rufus-scheduler/tree/master/CHANGELOG.txt#L31-32
http://rubyforge.org/tracker/index.php?func=detail&aid=20476&group_id=4812&atid=18584

You’ll find the mailing list for the rufus-stuff at :

http://groups.google.com/group/rufus-ruby

Best regards,

Many Thanks!

2008/8/10 John M. [email protected]

http://github.com/jmettraux/rufus-scheduler/tree/master/CHANGELOG.txt#L31-32

John M. - http://jmettraux.wordpress.com


Pablo Q.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs