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

Pool not working at all #128

Open
jamescasbon opened this issue Nov 13, 2014 · 1 comment
Open

Pool not working at all #128

jamescasbon opened this issue Nov 13, 2014 · 1 comment

Comments

@jamescasbon
Copy link

I have billiard installed on arch for python2 and 3:

community/python-billiard 3.3.0.18-2 [installed]
    Python multiprocessing fork with improvements and bugfixes.
community/python2-billiard 3.3.0.18-2 [installed]
    Python multiprocessing fork with improvements and bugfixes.

I am trying to run the following trivial example:

$ cat dh.py
def square(x):
    return x * x

$ cat run.py
from __future__ import print_function
import billiard
p = billiard.Pool(2)
from dh import square
print('hi')
print(p.map(square, [2,3]))
print('crashing so hard you wont see me')

python 2

$ python2 --version
Python 2.7.8

$ python2 run.py
hi

$ echo $?
1

python 3

$ python --version
Python 3.4.2

$ python run.py
hi

$ echo $?
1

tracing the process reveals a child calls exit_group(1). Is this supposed to work?

@ask
Copy link
Contributor

ask commented Nov 13, 2014

celery doesn't use the map method so we don't have focus on that (and multiprocessing doesn't have any unit tests sadly). I think this is fixed in the 3.3 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants