We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382eae4 commit ab9914aCopy full SHA for ab9914a
openeo/extra/job_management/_thread_worker.py
@@ -194,7 +194,7 @@ class _TaskThreadPool:
194
Defaults to 2.
195
"""
196
197
- def __init__(self, max_workers: int = 2, name: str = None):
+ def __init__(self, max_workers: int = 1, name: str = 'default'):
198
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=max_workers)
199
self._future_task_pairs: List[Tuple[concurrent.futures.Future, Task]] = []
200
self._name = name
@@ -335,3 +335,5 @@ def shutdown(self, pool_name: Optional[str] = None) -> None:
335
def list_pools(self) -> List[str]:
336
"""List all active pool names."""
337
return list(self._pools.keys())
338
+
339
0 commit comments