[ 
https://issues.apache.org/jira/browse/BEAM-10158?focusedWorklogId=439682&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-439682
 ]

ASF GitHub Bot logged work on BEAM-10158:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Jun/20 19:07
            Start Date: 01/Jun/20 19:07
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #11867:
URL: https://github.com/apache/beam/pull/11867#discussion_r433431576



##########
File path: sdks/python/apache_beam/utils/thread_pool_executor.py
##########
@@ -134,3 +134,12 @@ def shutdown(self, wait=True):
       if wait:
         for worker in self._workers:
           worker.join()
+
+
+class _SharedUnboundedThreadPoolExecutor(UnboundedThreadPoolExecutor):

Review comment:
       People can still use UnboundedThreadPoolExecutor and there could be a 
usecase around having threads from the pool having meaningful names to simplify 
debugging so I'm going to leave it as is.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 439682)
    Time Spent: 1h 10m  (was: 1h)

> [Python] Reuse a shared unbounded thread pool
> ---------------------------------------------
>
>                 Key: BEAM-10158
>                 URL: https://issues.apache.org/jira/browse/BEAM-10158
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: P2
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> During testing we create a lot of thread pools many of which we don't 
> shutdown which can lead to thread exhaustion on some machiens.
>  
> Swapping to use a shared thread pool will decrease the memory overhead for 
> these unused threads and allow for greater reuse.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to