Hi, How does one set up scheduled tasks in Zope (like automatically backing up files, automatically uploading newer versions of HTML files onto ZODB once a day, etc.)? I searched a little bit and found someone (Martijn Pieters) mentioning about ZScheduler... How is that coming along? Is it OK just to launch another Python thread from an external method to take care of scheduled tasks? Or is a performance hit? How can I automatically launch the scheduler thread whenever the ZServer is up? regards, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
On Fri, 17 Dec 1999, Hung Jung Lu wrote:
Hi,
How does one set up scheduled tasks in Zope (like automatically backing up files, automatically uploading newer versions of HTML files onto ZODB once a day, etc.)? I searched a little bit and found someone (Martijn Pieters) mentioning about ZScheduler... How is that coming along?
I can't speak to ZScheduler, but for now I would think you could get by with cron and Python/XML-RPC. A cron job could fire off a script which manipulates the Zope ODB via XML-RPC at whatever interval(s) you desire. --Jeff
Hello Hung, Friday, December 17, 1999, 11:53:05 AM, you wrote: HJL> How does one set up scheduled tasks in Zope (like automatically backing up HJL> files, automatically uploading newer versions of HTML files onto ZODB once a HJL> day, etc.)? I searched a little bit and found someone (Martijn Pieters) HJL> mentioning about ZScheduler... How is that coming along? Not. What with a lot of Zope projects in my previous job, a big presentation, and then my switch to Digital Creations nothing much has happend on this. HJL> Is it OK just to launch another Python thread from an external method to HJL> take care of scheduled tasks? Or is a performance hit? HJL> How can I automatically launch the scheduler thread whenever the ZServer is HJL> up? You better set up a small script run by cron for this. This is currently much easier to manage. -- Best regards, Martijn Pieters mailto:mj@digicool.com
At 8:27 PM +0100 12/17/99, Martijn Pieters wrote:
HJL> Is it OK just to launch another Python thread from an external method to HJL> take care of scheduled tasks? Or is a performance hit?
HJL> How can I automatically launch the scheduler thread whenever the ZServer is HJL> up?
You better set up a small script run by cron for this. This is currently much easier to manage.
One method I've looked at for this is using cron to run Lynx through specific URL's (i.e. a method to back things up or do whatever). Josh # # # _____________________________________________ Joshua Brauer Box 915 http://www.brauer.org Fort Collins, CO 80522 Fax: (419) 793-4120 _____________________________________________ In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 ____________________________________________________
Joshua Brauer wrote:
You better set up a small script run by cron for this. This is currently much easier to manage.
One method I've looked at for this is using cron to run Lynx through specific URL's (i.e. a method to back things up or do whatever).
A cool idea somebody suggested was having cron run lynx once a method agaisnt http://zope:8080/scheduler, where scheduler is a DTMLmethod or pythonmethod that launches the appropiate scheduled tasks if they match the current time. So you only have one cron job running and this method deals with everything else. -- Itamar S.T. itamars@ibm.net
Is there a simple way to see the name of the calling dtm-method. For example I want to have standard_html_header print the title of the page, unless it's the index_html method.... Can I do something like a dtml-if on a calling document? # # # _____________________________________________ Joshua Brauer Box 915 http://www.brauer.org Fort Collins, CO 80522 Fax: (419) 793-4120 _____________________________________________ In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 ____________________________________________________
participants (5)
-
Hung Jung Lu -
Itamar Shtull-Trauring -
Jeff K. Hoffman -
Joshua Brauer -
Martijn Pieters