Re: launching bg subproc from Pylons

2007-10-16 Thread Contact 42
huydo wrote: On Oct 5, 12:57 am, ram [EMAIL PROTECTED] wrote: that's interesting. Just out of interest, what program were you spawing ? and what does itdo? how long does it run for ? It's a long running batch job, database updates, GL file generation, month-end stuff.. A python

Re: launching bg subproc from Pylons

2007-10-15 Thread huydo
On Oct 5, 12:57 am, ram [EMAIL PROTECTED] wrote: that's interesting. Just out of interest, what program were you spawing ? and what does itdo? how long does it run for ? It's a long running batch job, database updates, GL file generation, month-end stuff.. A python script, using

Re: launching bg subproc from Pylons

2007-10-04 Thread ram
that's interesting. Just out of interest, what program were you spawing ? and what does it do ? how long does it run for ? It's a long running batch job, database updates, GL file generation, month-end stuff.. A python script, using SQLAlchemy. Runs for maybe 1/2 hour or so.

Re: launching bg subproc from Pylons

2007-10-03 Thread ram
you can try os.system(mycmd ) huy Thanks Huy, Tried that one, and other varations - that one hangs too. When I trace into the controller return, it hangs in Paste on a return from worker_thread_callback(). Could the child process somehow be inheriting a thread lock being held by the parent

Re: launching bg subproc from Pylons

2007-10-03 Thread ram
Yeah, it was the open socket. Use close_fds=True for subprocesses launched from a controller. On Oct 3, 12:52 pm, ram [EMAIL PROTECTED] wrote: you can try os.system(mycmd ) huy Thanks Huy, Tried that one, and other varations - that one hangs too. When I trace into the controller

Re: launching bg subproc from Pylons

2007-10-03 Thread ram
It does. So does 'nohup' and that hung too. I guess the socket handle is inherited all the way down the chain. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

Re: launching bg subproc from Pylons

2007-10-03 Thread huydo
On Oct 4, 12:58 pm, ram [EMAIL PROTECTED] wrote: It does. So does 'nohup' and that hung too. I guess the socket handle is inherited all the way down the chain. that's interesting. Just out of interest, what program were you spawing ? and what does it do ? how long does it run for ? huy

Re: launching bg subproc from Pylons

2007-10-02 Thread Contact 42
you can try os.system(mycmd ) huy stupid question: I'm trying to launch a background process from a Pylons controller, using the Python subprocess module in response to a hit from a browser. Funny thing is that Pylons seems to hold the browser connection open until the subprocess has

launching bg subproc from Pylons

2007-10-01 Thread ram
stupid question: I'm trying to launch a background process from a Pylons controller, using the Python subprocess module in response to a hit from a browser. Funny thing is that Pylons seems to hold the browser connection open until the subprocess has completed - even though I'm running the