What I have in mind is a product that includes a schedule data structure containing tuples of (date/time, method to call), a Dispatcher method, and a Scheduler method: 1. Cron runs a Dispatcher method via RPC. 2. Dispatcher looks in schedule table, finds next scheduled method in table, and runs it as a separate transaction (could use RPC), and removes the entry from the table. 3. Schedule-aware objects can use the Scheduler method to schedule one of their methods for execution at a given time. The schedule-aware object would specify the URL of scheduled method. Simple RPC would be the default. XML-RPC would be possible (but as I have no need for it I probably would leave a hook to extend the product). Repetitive tasks can reschedule themselves each time they are called. I have no experience doing this kind of stuff, so I welcome all inputs. (It sounds like the kernel of an OS.) I bet it's not as simple as it appears to me at this time. -- Loren
-----Original Message----- From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf Of Thilo Mezger Sent: Friday, February 04, 2000 01:58 To: zope-dev@zope.org Subject: Re: [Zope-dev] Scheduler product, anyone?
"Loren Stafford" <lstaffor@dynalogic.com> wrote:
At one time there was talk on this list (or zope@zope.org) of building a scheduler product -- something that would automatically execute specified methods at specified times or time intervals.
Does anyone have such a product in the works? ...or is it time for me to roll up my sleeves and get to work?
would that be a lot different from writing an external python script that would be run by cron (on unix) and trigger a zope method via xml-rpc...?!
thilo
-- mezger@innominate.de innominate AG networking people fon: +49.30.308806-11 fax: -77 web: http://innominate.de pgp: /pgp/tm
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )