[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby ruffus scheduler doesn't work on Sunday's

Pablo Q.

8/10/2008 12:50:00 PM

[Note: parts of this message were removed to make it a legal post.]

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
--
Pablo Q.

2 Answers

John Mettraux

8/10/2008 1:46:00 PM

0

On Sun, Aug 10, 2008 at 9:50 PM, Pablo Q. <paqs140482@gmail.com> 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....
http://rubyforge.org/tracker/index.php?func=detail&aid=20476&group_id=4812&...

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

http://groups.google.com/group/...


Best regards,

--
John Mettraux - http://jmettraux.wor...

Pablo Q.

8/10/2008 4:59:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

Many Thanks!

2008/8/10 John Mettraux <jmettraux@openwfe.org>

> On Sun, Aug 10, 2008 at 9:50 PM, Pablo Q. <paqs140482@gmail.com> 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....
>
> http://rubyforge.org/tracker/index.php?func=detail&aid=20476&group_id=4812&...
>
> You'll find the mailing list for the rufus-stuff at :
>
> http://groups.google.com/group/...
>
>
> Best regards,
>
> --
> John Mettraux - http://jmettraux.wor...
>
> --
Pablo Q.