Re: [Twisted-Python] Graceful shutdown of twistd application

2014-09-05 Thread Fabio Sangiovanni
Hi, I just wanted to give an update about the way I got it, in case this could be useful for somebody. I essentially inherited from service.MultiService like this: class GracefulMultiService(service.MultiService): def stopService(self): d = defer.succeed(None) d.addCallback(s

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-05 Thread exarkun
On 06:30 am, a...@roiban.ro wrote: On 4 September 2014 12:59, wrote: [snip] What would be really nice is if someone collected *all* of the complaints about `spawnProcess` into one place and integrated solutions to them into a design for a replacement. :) Jean-Paul Since I can not create w

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-05 Thread Adi Roiban
On 5 September 2014 13:13, wrote: > On 06:30 am, a...@roiban.ro wrote: [snip] >> For a new design: >> >> * I like the ProcessProtocol API > > > I don't. :) ProcessProtocol means you can't re-use any of your existing > IProtocol implementations. Oops. > > It seems like a better API would let you

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-05 Thread Phil Mayers
On 05/09/14 13:13, exar...@twistedmatrix.com wrote: I don't. :) ProcessProtocol means you can't re-use any of your existing IProtocol implementations. Oops. On the other hand, it's possible to build this on top of ProcessProtocol and no one ever has... I do this about 3 times a year. Ye

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-05 Thread Glyph Lefkowitz
On Sep 5, 2014, at 5:13 AM, exar...@twistedmatrix.com wrote: > It seems like a better API would let you say "Here is a protocol, hook its > output up to fd 0 in the process, hook fd 1 in the process up to its input. > Here is another protocol, hook fd 2 in the process up to its input" (this >

Re: [Twisted-Python] spawnProcess - reapProcess not retrying on failures

2014-09-05 Thread Glyph Lefkowitz
On Sep 4, 2014, at 11:30 PM, Adi Roiban wrote: > Since I can not create wiki pages here are my notes: I went to add you to wiki_editors, and I found that someone had already done so ;). Please go ahead and create a wiki page - perhaps under - so we