Skip to content

Commit 1758dbb

Browse files
committed
refact(conf): rename cfg thread_pool --> execution_pool ...
to anticipate storing also Executors in it.
1 parent d410b89 commit 1758dbb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphtik/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@
8181
log = logging.getLogger(__name__)
8282

8383

84+
#: Global configurations for all networks in some computaion.
8485
execution_configs: ContextVar[dict] = ContextVar(
8586
"execution_configs",
86-
default={"thread_pool": Pool(7), "abort": False, "skip_evictions": False},
87+
default={"execution_pool": Pool(7), "abort": False, "skip_evictions": False},
8788
)
8889

8990

@@ -247,7 +248,7 @@ def _execute_thread_pool_barrier_method(self, solution, overwrites, executed):
247248
n: solution[n] for n in self.steps if isinstance(n, _PinInstruction)
248249
}
249250

250-
pool = execution_configs.get()["thread_pool"]
251+
pool = execution_configs.get()["execution_pool"]
251252

252253
# with each loop iteration, we determine a set of operations that can be
253254
# scheduled, then schedule them onto a thread pool, then collect their

0 commit comments

Comments
 (0)