-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

is it save to use the 'multiprocessing' module inside a BFG app?
In particular I need to maintain a multiprocessing.Pool() instance...
this is working at the first glance however the BFG app won't shutdown
in a clean way when stopped through a keyboard interrupt. The apps
hangs usually inside the following code:

  File "/opt/python-2.6.4/lib/python2.6/atexit.py", line 24, in
_run_exitfuncs
    func(*targs, **kargs)
  File "/opt/python-2.6.4/lib/python2.6/multiprocessing/util.py", line
260, in _exit_function
    _run_finalizers(0)
  File "/opt/python-2.6.4/lib/python2.6/multiprocessing/util.py", line
235, in _run_finalizers
    finalizer()
  File "/opt/python-2.6.4/lib/python2.6/multiprocessing/util.py", line
174, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "/opt/python-2.6.4/lib/python2.6/multiprocessing/pool.py", line
363, in _terminate_pool
    cls._help_stuff_finish(inqueue, task_handler, len(pool))
  File "/opt/python-2.6.4/lib/python2.6/multiprocessing/pool.py", line
348, in _help_stuff_finish
    inqueue._rlock.acquire()

There is a Pool.terminate() method for closing the pool manually however
I don't know exactly where to trigger the code.

Thoughts?

Andreas


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvAdm4ACgkQCJIWIbr9KYwUCwCeIl2swbQg61OkMdYXfaR5EWPE
2tkAoOoZ/KN/tIRLCBiBP8tKttJMc9ok
=pn9J
-----END PGP SIGNATURE-----

<<attachment: lists.vcf>>

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to