Skip to content

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