Hi Lee,

On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hopefully I'm not committing too great a faux pas not trying this out
> first, but I figured that I'd kick in the five minutes for a question
> post before spending the five hours to try everything out.

That's wise indeed.


> Is using the OpenWFEru scheduler with Rails simply a matter of
> requiring "environment" in order to gain access to the ActiveRecord
> models and database in the application?

I think that's all you need.

> What's the recommended method
> of starting and stopping the scheduler with regard to starting and
> stopping the Rails application?

For starting, maybe in environment itself, for stopping, I don't know.
Probably in Rails shutdown hook (I'm not a Rails expert, I haven't
explored that side of Rails yet).


> Is anyone else using OpenWFEru with
> Rails?

No idea.


> Are there any gotchas?

Some gotchas (for OpenWFEru and in general) are listed on Ilya's blog
(in the comments) :
http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/

The main problem is persistence. The classical cron takes care of
persistence for you, not the OpenWFEru scheduler. At restart you have
to reschedule it by yourself.

I can provide assistance for implementing some degree of persistence,
it's not that difficult. I haven't done it yet, because schedules
expressed as Ruby blocks are not serializable per se.
But if the schedules are simply wrapped method calls, persisting might be easy.

The OpenWFEru workflow engine takes care of the persistence for the
scheduler, but it's certainly too much for your needs.


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to