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
I'll probably make the last (6th) element in the cron string be the
one about seconds (currently defaulting to 0).
Before it's implemented you could get along with a schedule within a
schedule, having a minute based cron job triggering a
scheduler.schedule_in("22s")... thing. But there might be some time
lost in the relay, perhaps amounting up to a second...
Thanks for the feedback, herzliche Gruesse,
--
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
-~----------~----~----~----~------~----~------~--~---