[Twisted-Python] Launching Twisted client using Process call
namanvit at gmail.com
Fri Nov 20 03:05:57 EST 2009
Just to add to the previous post:
>>foo = Process(target=build_worker.main, args=(build_q,uid,))
is the statement I want to replace (because it is unreliable), with
something other that reactor.spawnprocess as there is no reactor in the
On Tue, Nov 17, 2009 at 3:30 PM, David Ripton <dripton at ripton.net> wrote:
> On 2009.11.17 07:07:50 +0100, naman jain wrote:
> > I try to launch it as a Process:
> > foo = Process( target=twisted_client.main, args=(q,uid,))
> > foo.start()
> > foo.join()
> > status = q.get()
> > Launching the client in this manner, is not showing reliable results.
> You didn't give a long enough example to be certain, but that looks like
> multiprocessing.Process syntax. The multiprocessing module does not
> work reliably with Twisted. Neither does the subprocess module.
> You should use the equivalent Twisted process functionality, shown at
> There's also https://launchpad.net/ampoule, but for the small example
> you show, the basic Twisted process stuff should be fine.
> David Ripton dripton at ripton.net
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python