[Zope-dev] zc.async: cron replacement?

Reinout van Rees reinout at vanrees.org
Thu Jun 25 04:18:48 EDT 2009


On 2009-06-24, Gary Poster <gary.poster at gmail.com> wrote:
>
> zc.async can be used to do cron-like activities by starting a job,
> to be performed after a certain time, that has a callback that
> reschedules another job when desired.
>
> This has the advantage over cron-like behavior because it does not
> reschedule until the first job is done.

Well, for a task that runs a couple of seconds once a day or once a
week...  My first thought was "if something goes wrong, the chain is
broken and no new jobs will be scheduled anymore".  From the
documentation, it seems zc.async is pretty robust so this is probably
not something I have to worry about.

I'd put a short paragraph in the readme that this is how you can do
cron jobs.  Helps with the google for "zope cron", too :-)

> Other zc.async competitors have cron implemented more directly, but
> I found it to be very easy and flexible to do what I wanted using
> the zc.async approach.

Thanks for the info.  I'll see if I can get a basic cron-with-pack
setup in one instance running.


Reinout

-- 
Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"



More information about the Zope-Dev mailing list