Hi folks, I was creeped out by Zope scheduling products that started a separate thread to call methods at scheduled intervals and I got tired of setting up cron+wget to call Zope methods via HTTP, thus: http://plope.com/software/ClockServer It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often. Have fun! - C
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread though? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread though?
No. It reuses the thread pool that the publisher already uses. - C
Am I getting this.... this is what Zron should have been? -Jon Chris McDonough wrote:
On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread though?
No. It reuses the thread pool that the publisher already uses.
- C
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
This doesn't really do all of what something like Xron does.. it's only really a clock and you can't use it to schedule methods to run e.g. "every Wednesday at 3pm"; instead you can only run things "every x seconds". But if that's all you need, it's probably a lot simpler to use than something like Xron. On Fri, 2005-04-01 at 16:54, Jonathan Cyr wrote:
Am I getting this.... this is what Zron should have been?
-Jon
Chris McDonough wrote:
On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread though?
No. It reuses the thread pool that the publisher already uses.
- C
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Chris McDonough <chrism@plope.com> wrote:
I was creeped out by Zope scheduling products that started a separate thread to call methods at scheduled intervals and I got tired of setting up cron+wget to call Zope methods via HTTP, thus:
http://plope.com/software/ClockServer
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Very nice. I'm confused about the need for an external module for timeslice. What's wrong with: def timeslice(period, when=0): return when - (when % period) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
On Wed, 2005-04-06 at 11:05, Florent Guillaume wrote:
Chris McDonough <chrism@plope.com> wrote:
I was creeped out by Zope scheduling products that started a separate thread to call methods at scheduled intervals and I got tired of setting up cron+wget to call Zope methods via HTTP, thus:
http://plope.com/software/ClockServer
It works by posing as a medusa server, and injects things that look like http requests into the publisher every so often.
Very nice.
I'm confused about the need for an external module for timeslice. What's wrong with:
def timeslice(period, when=0): return when - (when % period)
That'd probably work. - C
participants (4)
-
Chris McDonough -
Chris Withers -
Florent Guillaume -
Jonathan Cyr