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
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
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.
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
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
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
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
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
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