-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
How to run non-deamon pool #169
Comments
Sorry for the slow response. |
I played with it for a while and I believe that I tried this too, but it ended the same... :( |
I tried your code, both using
Is this not what you intended to do? |
Also works in the interpreter (only tested 2.7, as opposed to all versions above)
|
@mmckerns it seems that your examples run fine, but somehow it crashes in my codes... class Cls(object):
"""Sample
>>> Cls().parallel()
"""
vals = range(5)
def _sum(self, nb):
return NoDaemonProcessPool(2).map(sum, [self.vals] * nb)
def parallel(self):
return NoDaemonProcessPool(2).map(self._sum, range(10)) crashes with following
I believe now that the problem is in my integrating to a class calling own method... |
it runs locally fine but executing your examples on CI it fails for both py2 and py3 |
@Borda: Not sure what's going on with your tests... but the failures in the two links above are potentially due to other issues... 1417: |
Hello, I am wondering if there is an option how to run non-daemon processing pool within
pathos
. My goal is to run a processing pool within another processing work. I have found a couple of tricks for standardmultiprocessing
package but none of them works forpathos
...where instead of
multiprocessing.pool.Pool
I am usingpathos.multiprocessing.ProcessPool
and the error message isThe text was updated successfully, but these errors were encountered: