Re: [Zope] Periodic task in a Zope 2 environment

2009-02-18 Thread Chris Withers
Marco Bizzarri wrote: Thanks, Chris, but I do not want to use cron... Why not? Why re-invent the wheel in a more fragile and less tested way? also because I can end in environments where there is no cron ;) Such as? On *nix, you have cron. On MacOS, you have cron. On Windows, you have

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Chris Withers
Marco Bizzarri wrote: Is there a better way to run such tasks in Zope 2 environments? Have a look at Stepper: http://www.simplistix.co.uk/software/zope/stepper ...and then actually *use* cron to trigger stepper ;-) Chris -- Simplistix - Content Management, Zope Python Consulting

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Chris Withers
Thibaud Morel l'Horset wrote: What I did to solve this problem is simply create a few crons on the server that each do a mechanize (http://wwwsearch.sourceforge.net/mechanize/) http call to a specific location in Zope which basically acts as a private API: when called, it executes a

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-17 Thread Marco Bizzarri
On Tue, Feb 17, 2009 at 6:48 PM, Chris Withers ch...@simplistix.co.uk wrote: Marco Bizzarri wrote: Is there a better way to run such tasks in Zope 2 environments? Have a look at Stepper: http://www.simplistix.co.uk/software/zope/stepper ...and then actually *use* cron to trigger stepper

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.02.2009 16:59 Uhr, Marco Bizzarri wrote: Is there a better way to run such tasks in Zope 2 environments? ClockServer (build-in of Zope). Check your zope.conf. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment:

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
On Mon, Feb 16, 2009 at 5:01 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ClockServer (build-in of Zope). Check your zope.conf. - -aj Thanks for answering, Andreas. Is it reasonably safe to use Clock Server in Zope 2.8? (( Reasonably safe = there

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.02.2009 17:11 Uhr, Marco Bizzarri wrote: On Mon, Feb 16, 2009 at 5:01 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ClockServer (build-in of Zope). Check your zope.conf. - -aj Thanks for

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Thibaud Morel l'Horset
I'm guessing that AJ's solution is the best to implement. What I did to solve this problem is simply create a few crons on the server that each do a mechanize (http://wwwsearch.sourceforge.net/mechanize/) http call to a specific location in Zope which basically acts as a private API: when called,

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
On Mon, Feb 16, 2009 at 6:50 PM, Thierry Florac thierry.flo...@onf.fr wrote: Hi, I don't know if it's the best way, but I've implemented a cron like task base class for my Zope-2.9 instance, which : - is thread based - can launch operations in a cron like way - can act as the user of