Skip to content

Commit 697d65f

Browse files
committed
fix: avoid unncessary holding of ProcessPoolExecutor to allow its GC
1 parent 88a2a2a commit 697d65f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

python/cocoindex/subprocess_exec.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,9 @@ def _sp_call(key_bytes: bytes, args: tuple[Any, ...], kwargs: dict[str, Any]) ->
238238

239239

240240
class _ExecutorStub:
241-
_pool: ProcessPoolExecutor
242241
_key_bytes: bytes
243242

244243
def __init__(self, executor_factory: type[Any], spec: Any) -> None:
245-
self._pool = _get_pool()
246244
self._key_bytes = pickle.dumps(
247245
(executor_factory, spec), protocol=pickle.HIGHEST_PROTOCOL
248246
)

0 commit comments

Comments
 (0)