Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register atexit callback and import multiprocessing module only when process_pool is initialized. #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mumino
Copy link
Collaborator

@mumino mumino commented Oct 25, 2015

register atexit callback and import multiprocessing module only when process_pool is initialized.

  1. Process pool is initialized by thread safe way.
  2. atexit callback only registered at the same time with process_pool initializing. So both of them are singleton in threaded env. process pooling does not play well with django runserver #9
  3. "multiprocessing import" delayed as much as possible. this helps google app engine import issues. Can this run on Google App Engine? #18
    test need for pull requests.

…process_pool is initialized.

1. Process pool is initialized by thread safe way.
2. atexit callback only registered at the same time with process_pool initiliazing. So both of them are singleton in threaded env.
3. "multiprocessing import" delayed as much as possible. this helps google app engine import issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant