nextpipe 0.3.3.dev0__tar.gz → 0.3.4.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/PKG-INFO +1 -1
- nextpipe-0.3.4.dev0/nextpipe/__about__.py +1 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/threads.py +10 -3
- nextpipe-0.3.3.dev0/nextpipe/__about__.py +0 -1
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/lint.yml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/release.yml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.github/workflows/test.yml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.gitignore +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.markdownlint.jsonc +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.nextmv/bump_requirements.sh +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.prettierrc.yml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/.readthedocs.yaml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/LICENSE.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/README.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/RELEASE.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/basic-chained-workflow.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/complex-workflow-csv.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/complex-workflow.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/ensemble-workflow.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/examples/fanout-workflow.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/logo-180.png +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/nextmv-favicon.svg +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/routing-ortools-pyvroom-selected.png +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/routing-selected.png +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/index.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/config.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/decorators.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/flow.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/graph.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/schema.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/threads.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/uplink.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/reference/utils.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/requirements.txt +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/tutorials/echo.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/tutorials/getting-started.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/mkdocs.yml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/__init__.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/config.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/decorators.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/flow.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/graph.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/schema.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/uplink.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe/utils.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/nextpipe.code-workspace +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/pyproject.toml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/.gitignore +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/README.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/__init__.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/.gitignore +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/README.md +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/app.yaml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/main.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/apps/echo/requirements.txt +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/app.yaml +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/main.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/deploy/requirements.txt +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.json +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.json.golden +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/chain.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.json +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.json.golden +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/complex.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/fail.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.json +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.json.golden +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach-2-pred.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.json +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.json.golden +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/pipelines/foreach.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_graph.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_integration.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_schema.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_threads.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_uplink.py +0 -0
- {nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nextpipe
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4.dev0
|
|
4
4
|
Summary: Framework for Decision Pipeline modeling and execution
|
|
5
5
|
Project-URL: Homepage, https://www.nextmv.io
|
|
6
6
|
Project-URL: Documentation, https://nextpipe.docs.nextmv.io/en/latest/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "v0.3.4-dev.0"
|
|
@@ -13,11 +13,18 @@ Pool
|
|
|
13
13
|
The module also provides a thread local storage variable for thread-specific data.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
import multiprocessing
|
|
17
16
|
import threading
|
|
18
17
|
from collections.abc import Callable
|
|
19
18
|
from typing import Any, Optional
|
|
20
19
|
|
|
20
|
+
DEFAULT_MAX_THREADS = 24
|
|
21
|
+
"""
|
|
22
|
+
Default maximum number of threads for the thread pool. This is set to 24, to allow
|
|
23
|
+
parallel execution of sub-runs in the pipeline (as these are typically not CPU-bound). A
|
|
24
|
+
lower value more fit for the respective hardware is recommended when running many
|
|
25
|
+
CPU-bound steps.
|
|
26
|
+
"""
|
|
27
|
+
|
|
21
28
|
thread_local = threading.local()
|
|
22
29
|
"""Thread-local storage.
|
|
23
30
|
|
|
@@ -176,11 +183,11 @@ class Pool:
|
|
|
176
183
|
----------
|
|
177
184
|
max_threads : int, optional
|
|
178
185
|
Maximum number of threads to use, by default 0.
|
|
179
|
-
If <= 0,
|
|
186
|
+
If <= 0, DEFAULT_MAX_THREADS is used.
|
|
180
187
|
"""
|
|
181
188
|
|
|
182
189
|
if max_threads <= 0:
|
|
183
|
-
max_threads =
|
|
190
|
+
max_threads = DEFAULT_MAX_THREADS
|
|
184
191
|
self.max_threads = max_threads
|
|
185
192
|
self.counter = 0 # Used to assign unique IDs to threads
|
|
186
193
|
self.waiting = {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "v0.3.3-dev.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nextpipe-0.3.3.dev0 → nextpipe-0.3.4.dev0}/docs/images/routing-ortools-pyvroom-selected.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|