On 10/18/07, John Mettraux <[EMAIL PROTECTED]> wrote:
> On 10/18/07, Philipp <[EMAIL PROTECTED]> wrote:
> >
> > Hello everyone,
> > im looking for something like the method scheduler.schedule (" 1 * * *
> > *"), the cron syntax
> > but with resolutions of seconds.
> > is there a trick to get work with seconds ? i think the timer
> > resolution is 0.25 sec but i can't enter it in cron systax
> >
> > eg i want a task that runs every hour and 22 mins and 22 secs or for
> > example every 10 seconds but only mondays.
>
> Hi Philipp,
>
> I've added a feature request for having optional cron schedules down
> to the second precision, I'm sure you won't be the last to ask.
>
> http://rubyforge.org/tracker/index.php?func=detail&aid=14823&group_id=2609&atid=10026
Hi,
it's implemented and available via "sudo gem ..." or
http://rubyforge.org/frs/download.php/26739/openwferu-scheduler-0.9.15.1172.gem
(in both cases give some time to RubyForge to publish the gem).
A cron string can now have 5 or 6 items, the first of them being the
"second" column.
---8<---
scheduler.schedule("7,27 * * * * *") do
puts "...popping up at the seventh and the twenty-seventh seconds..."
end
--->8---
This implementation does not break previous "cron strings", they'll
work as they did until now.
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---