Re: Python Multiprocessing With Django

2015-10-06 Thread Subha Bera
My program trigger some regression file in a remote host for that I used paramiko module. But I want to trigger same kinda file to different machines parallel-ly. I am using django so that people can use this as web app. I am using url-view-template model. How can use I multi threading in the

Re: Python Multiprocessing With Django

2012-12-16 Thread Peter Schmidt
Just in case someone else stumbles across this old thread. TLDR: The recipe may be able to be improved - I only needed to close the connection in the parent Python process, not in the child process. -- Best guess hypothesis as to what's going on is when you fork a process, the OS (e.g. OSX

Re: Python Multiprocessing With Django

2009-03-06 Thread Jirka Vejrazka
> Thanks Jirka, that fixed the problem. But I think I will file a bug report > that seem to be very hacky :) Great, I'm glad it solved your problem. Personally, I don't think it is a bug, as we both pushed Django well beyond its "area of expertise". I really believe that Django is great for

Re: Python Multiprocessing With Django

2009-03-06 Thread Vitaly Babiy
Thanks Jirka, that fixed the problem. But I think I will file a bug report that seem to be very hacky :) Vitaly Babiy On Fri, Mar 6, 2009 at 11:15 AM, Vitaly Babiy wrote: > Alright I will have to give this a try > > Vitaly Babiy > > > > On Fri, Mar 6, 2009 at 10:30 AM,

Re: Python Multiprocessing With Django

2009-03-06 Thread Vitaly Babiy
Alright I will have to give this a try Vitaly Babiy On Fri, Mar 6, 2009 at 10:30 AM, Jirka Vejrazka wrote: > > > I have a management command that that starts up a few process to process > a > > request: http://dpaste.com/7925/. > > Hi, I was recently debugging similar

Re: Python Multiprocessing With Django

2009-03-06 Thread Jirka Vejrazka
> I have a management command that that starts up a few process to process a > request: http://dpaste.com/7925/. Hi, I was recently debugging similar issue and came to a conclusion (which may be wrong of course :) that multiprocessing and Django DB connections don't play well together. I ended

Python Multiprocessing With Django

2009-03-06 Thread Vitaly Babiy
I have a management command that that starts up a few process to process a request: http://dpaste.com/7925/. But every so offen I get a exception say mysql went a way, but it didn't. Process PoolWorker-3: Traceback (most recent call last): File