Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
multiprocessing module
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kris  
View profile  
 More options Aug 1 2012, 1:02 pm
From: kris <kkvilek...@gmail.com>
Date: Wed, 1 Aug 2012 10:02:44 -0700 (PDT)
Local: Wed, Aug 1 2012 1:02 pm
Subject: multiprocessing module

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »