On Fri, Jun 14, 2013 at 05:41:04AM -0700, [email protected] wrote:
>
> Hello.

Hello Denis,

welcome to the ruote mailing list.

Thanks for the barley feedback.

  https://github.com/jmettraux/ruote/commit/c2134825a9e


> I'm new to ruote, and currently in learning mode.  I'm interested to
> understand how the scheduling feature in ruote works.  I've looked on
> http://ruote.rubyforge.org/documentation.html and also done some googling,
> but wasn't able to find much specifically talking about how ruote's
> scheduling feature works.

Roughly, the scheduling in ruote works by placing the scheduled events in a
schedule queue, ordered by schedule time, and having the worker check at
least once per minute for work to trigger.

This is the vanilla approach. With some storage implementations, the worker
listen for schedule events to trigger.


> The app that we're thinking of using ruote in
> needs to be able to schedule processes/workflows to launch on a specific
> date and time, and sometimes on a repeating schedule (e.g. every Friday at
> 9:00am).

"cron" and "at" are your friends. (man cron / man at).

> Is this the kind of functionality that ruote scheduling was
> designed to provide?

Not really, I always thought it a better job for "cron" and "at". But in some
platforms they are hidden from the applications, so...

Originally, the scheduling in ruote was developped for timeouts and then
for recurring events inside of a process instance.

  http://ruote.rubyforge.org/common_attributes.html#timeout
  http://ruote.rubyforge.org/common_attributes.html#timers
  http://ruote.rubyforge.org/exp/wait.html
  http://ruote.rubyforge.org/exp/cron.html


> It's ok if we need to build this type of scheduling
> functionality ourselves on of ruote, but I'm hoping this capability is
> already provided by ruote, and I can just "check the box" on our
> requirements list.

The capability is already provided by the *nix system you'll deploy to,
hopefully. If not, you can fall back on using ruote's expressions.


> Also, can anyone provide a working example of using ruote's scheduling?

This example shows a main process launching an independent (:forget => true)
subprocess every minute.

  https://gist.github.com/jmettraux/5785570


Best regards,

--
John Mettraux   -   http://lambda.io/jmettraux

-- 
-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to