Author sbt
Recipients abn, jnoller, sbt
Date 2013-02-22.09:50:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361526612.78.0.0680697268195.issue17273@psf.upfronthosting.co.za>
In-reply-to
Content
A pool should only be used by the process that created it (unless you use a managed pool).

If you are creating long lived processes then you could create a new pool on demand.  For example (untested)

    pool_pid = (None, None)

    def get_pool():
        global pool_pid
        if os.getpid() != pool_pid[1]:
            pool_pid = (Pool(), os.getpid())
        return pool_pid[0]
History
Date User Action Args
2013-02-22 09:50:12sbtsetrecipients: + sbt, jnoller, abn
2013-02-22 09:50:12sbtsetmessageid: <1361526612.78.0.0680697268195.issue17273@psf.upfronthosting.co.za>
2013-02-22 09:50:12sbtlinkissue17273 messages
2013-02-22 09:50:12sbtcreate