I was trying to use the multiproccessing Pool module to do some background processing after a web request. Seems to work fine on Linux, but on windows the process basically ends up trying to restart the entire web server, which fails since the listening port is occupied, and never ends up calling the requested functions.
The multiprocessing docs emphasize that the "__main__" module be protected with the usual if __name__ == "__main__", so that it can be loaded without running all initialization code again. This seems to be what is happening in the windows case. We load a new sub-process which tries to start the web-server all over again. I poked around the paster code a bit, but couldn't really find the answer. Has anybody had any luck using multiprocessing on BOTH unix and windows in a pylons project? Thx, Kris -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/esKFsNdl_9QJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
