[Catalyst] [RFC] C::P::Scheduler - cron-like scheduling of events
Sam Vilain
sam at vilain.net
Wed Dec 14 02:30:47 CET 2005
On Mon, 2005-12-12 at 10:21 -0500, Andy Grundman wrote:
> > Also, how does it get initiated?
> Every request the plugin checks if the current time is at or past the
> run time for a scheduled event. If so, it runs the action/coderef for
> the event and marks it as completed in the state file.
Hmm, that seems like a hack. Perhaps a supervisor process should take
care of this, and the supervisor process itself could be based on
something like Event.pm. Then the per-request activity is "do I have a
supervisor? If not, quickly make one and carry on."
The supervisor process could be used to control process groups for
server back-ends, and co-ordinating other "asynchronous activity" such
as running long-running queries using a nice API.
The supervisor could resemble an ORB, I guess.
Sam.
More information about the Catalyst
mailing list