Module Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str With AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str While NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A atexit N/A logging N/A Queue N/A threading N/A traceback WorkerPool N/A object N/A N/A  Pool of worker threads; grows as necessary.  N/A _lock N/A N/A threading Lock N/A _pool None __init__ N/A N/A self N/A N/A N/A N/A self _idle N/A N/A N/A self _workers N/A N/A N/A N/A atexit register N/A self cleanup N/A get_instance N/A N/A N/A N/A N/A  Return singleton instance.  N/A N/A WorkerPool _lock N/A N/A N/A N/A WorkerPool _pool None N/A N/A N/A WorkerPool _pool N/A WorkerPool N/A N/A WorkerPool _pool N/A staticmethod cleanup N/A N/A N/A N/A N/A  Cleanup resources (worker threads).  N/A N/A N/A N/A N/A WorkerPool get_instance _cleanup N/A staticmethod _cleanup N/A N/A self N/A N/A N/A  Cleanup resources (worker threads).  N/A N/A self _lock N/A N/A queue N/A self _workers N/A N/A N/A N/A queue put N/A None None None None N/A N/A N/A N/A N/A self _workers N/A queue join 1 N/A N/A N/A N/A N/A self _workers N/A queue is_alive N/A N/A N/A N/A logging debug WorkerPool: worker join timed-out. N/A N/A N/A N/A N/A N/A self _idle remove queue N/A N/A N/A ValueError N/A N/A N/A N/A self _idle N/A N/A N/A self _workers N/A N/A get N/A N/A one_shot N/A False N/A N/A 
        Get a worker queue from the pool. Work requests should be of the form:

        ``(callable, *args, **kwargs, reply_queue)``

        Work replies are of the form:

        ``(queue, retval, exc, traceback)``

        one_shot: bool
            If True, the worker will self-release after processing one request.
         N/A N/A N/A N/A N/A WorkerPool get_instance _get one_shot N/A staticmethod _get N/A N/A self one_shot N/A N/A N/A  Get a worker queue from the pool.  N/A N/A self _lock N/A N/A N/A N/A N/A N/A N/A self _idle pop N/A N/A N/A IndexError N/A N/A queue N/A N/A Queue Queue N/A worker N/A N/A threading Thread target N/A self _service_loop args N/A queue one_shot N/A N/A worker daemon True N/A N/A N/A worker start N/A N/A N/A self _workers N/A queue worker N/A queue N/A release N/A N/A queue N/A N/A N/A 
        Release a worker queue back to the pool.

        queue: Queue
            Worker queue previously obtained from :meth:`get`.
         N/A N/A N/A N/A N/A WorkerPool get_instance _release queue N/A staticmethod _release N/A N/A self queue N/A N/A N/A  Release a worker queue back to the pool.  N/A N/A self _lock N/A N/A N/A N/A N/A self _idle append queue N/A _service_loop N/A N/A self request_q one_shot N/A N/A N/A  Get (callable, args, kwargs) from request_q and queue result.  N/A True N/A N/A N/A callable args kwargs reply_q N/A N/A request_q get N/A N/A callable None N/A N/A N/A N/A request_q task_done N/A N/A exc None N/A trace None N/A retval None N/A N/A N/A retval N/A callable args kwargs N/A N/A N/A Exception N/A exc N/A N/A N/A N/A trace N/A N/A traceback format_exc N/A N/A N/A Exception N/A N/A N/A N/A N/A request_q task_done N/A N/A reply_q None N/A N/A N/A N/A reply_q put N/A request_q retval exc trace N/A one_shot N/A N/A N/A N/A self _release request_q N/A N/A