backend.NestableSessionPool¶
- class backend.NestableSessionPool(session, func, processes=None, maxtasksperchild=None, **kwargs)¶
A version of Session Pool that allows the workers to spawn their own processes
- Process¶
alias of
backend.session.NoDaemonProcess
- __init__(session, func, processes=None, maxtasksperchild=None, **kwargs)¶
Initialize the Pool with the given session, function, and number of processes. The session is saved to a temporary directory and is then loaded ino each worker process. The function is the global function you want the workers to run, the first argument of which should be the session