Pardon my stupidity but is Chris Withers' Stepper the right thing for me...? I've got a message central that accepts and sends messages. The system has an in-part and and out-part that is quite separate. Then there's third party code that looks a bit like this: <pseudocode> def acceptIncomingMessage(self, message): # add to the queue self.getMCentral().storeMessage(message) # process all (should be only one) items off the queue self.getMCentral().sendAllUnsent() return "cool" </pseudocode> The call to sendAllUnsent() I would prefer if it was done asyncronously in case it takes several seconds. I could accomplish this by having a cron job calling it every 5 minutes but ldeally I don't want to rely on cron for this setup. Is Stepper the right thing for me? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
On 29 Nov 2005, at 11:12, Peter Bengtsson wrote:
Pardon my stupidity but is Chris Withers' Stepper the right thing for me...?
yes
The call to sendAllUnsent() I would prefer if it was done asyncronously in case it takes several seconds. I could accomplish this by having a cron job calling it every 5 minutes but ldeally I don't want to rely on cron for this setup. Is Stepper the right thing for me?
Stepper still needs cron. It is not a cron replacement. jens
Jens Vagelpohl wrote:
Pardon my stupidity but is Chris Withers' Stepper the right thing for me...?
yes
What he said ;-)
The call to sendAllUnsent() I would prefer if it was done asyncronously in case it takes several seconds. I could accomplish this by having a cron job calling it every 5 minutes but ldeally I don't want to rely on cron for this setup. Is Stepper the right thing for me?
Stepper still needs cron. It is not a cron replacement.
...but it does make building a cron job that does stuff with Zope a whole lot easier, and covers all the edge cases you'd forget ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Jens Vagelpohl -
Peter Bengtsson