File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3737_logger = logging .getLogger (__name__ )
3838
3939
40- def _shutdown_pool_at_exit () -> None :
40+ def shutdown_pool_at_exit () -> None :
4141 """Best-effort shutdown of the global ProcessPoolExecutor on interpreter exit."""
4242 global _pool , _pool_cleanup_registered # pylint: disable=global-statement
4343 print ("Shutting down pool at exit" )
@@ -65,7 +65,7 @@ def _get_pool() -> ProcessPoolExecutor:
6565 if not _pool_cleanup_registered :
6666 # Register the shutdown at exit at creation time (rather than at import time)
6767 # to make sure it's executed earlier in the shutdown sequence.
68- atexit .register (_shutdown_pool_at_exit )
68+ atexit .register (shutdown_pool_at_exit )
6969 _pool_cleanup_registered = True
7070
7171 # Single worker process as requested
You can’t perform that action at this time.
0 commit comments