(pool)
return cleaned
Cleanup after any worker processes which have exited due to reaching
        their specified lifetime.  Returns True if any workers were cleaned up.
Cleanup after any worker processes which have exited due to reaching
        their specified lifetime.  Returns True if any workers were cleaned up.
Cleanup after any worker processes which have exited due to reaching their specified lifetime . Returns True if any workers were cleaned up .
def _join_exited_workers(pool):
        """Cleanup after any worker processes which have exited due to reaching
        their specified lifetime.  Returns True if any workers were cleaned up.
        """
        cleaned = False
        for i in reversed(range(len(pool))):
            worker = pool[i]
            if worker.exitcode is not None:
                # worker exited
                util.debug('cleaning up worker %d' % i)
                worker.join()
                cleaned = True
                del pool[i]
        return cleaned
def _join_exited_workers ( pool ) : cleaned = False for i in reversed ( range ( len ( pool ) ) ) : worker = pool [ i ] if worker . exitcode is not None : # worker exited util . debug ( 'cleaning up worker %d' % i ) worker . join ( ) cleaned = True del pool [ i ] return cleaned