Would be great to use the new scheduler but doesn't seem applicable in this 
case. I have no difficulty starting these processes.

As described in OP, the problem is these are child processes which makes 
them dependent on the main web2py process. So I was wanting these to 
be independent processes - or is there a better way?



On Thursday, November 1, 2012 3:45:28 PM UTC+11, Massimo Di Pierro wrote:
>
> Please use the scheduler.
>
> On Wednesday, 31 October 2012 21:56:47 UTC-5, Richard Penman wrote:
>>
>> Hello,
>>
>> I create a new process after each form submission to parse some data:
>> subprocess.Popen(['python', parser_script], 
>> cwd=os.path.dirname(parser_script))
>> (The parser_script is independent of web2py)
>>
>> This parsing can take days and multiple parsers need to be executed at 
>> once.
>> However if the web2py process is ended these child processes are also 
>> killed. 
>> How can I run these as independent orphan processes?
>>
>> A Linux only solution is fine or cross platform if practical.
>>
>> Richard
>>
>

-- 



Reply via email to