Unfortunately after lots of experimentation I wasn't able to get the 
multiprocessing module to work with web2py. What I did find however was 
that I could use subprocess.check_output to launch a Python script 
containing the multiprocessing module and a pool of workers, and I can get 
data to the script by passing it command line arguments. The check_output 
function returns script results "print"ed to stdout which I could then 
parse back in the web2py process and use to update my database. So it looks 
like multiprocessing can work as long as you use it in an external script 
running in its own instance of python. Hope this helps someone!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to