nextpipe 0.1.2.dev2__tar.gz → 0.1.2.dev4__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.1.2.dev2 → nextpipe-0.1.2.dev4}/PKG-INFO +1 -1
- nextpipe-0.1.2.dev4/examples/pipeline-chain/requirements.txt +1 -0
- nextpipe-0.1.2.dev4/examples/pipeline-complex/requirements.txt +1 -0
- nextpipe-0.1.2.dev4/examples/pipeline-ensemble/requirements.txt +1 -0
- nextpipe-0.1.2.dev4/examples/pipeline-foreach/requirements.txt +1 -0
- nextpipe-0.1.2.dev4/examples/pipeline-preprocess/requirements.txt +1 -0
- nextpipe-0.1.2.dev4/nextpipe/__about__.py +1 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/flow.py +7 -6
- nextpipe-0.1.2.dev2/examples/pipeline-chain/requirements.txt +0 -1
- nextpipe-0.1.2.dev2/examples/pipeline-complex/requirements.txt +0 -1
- nextpipe-0.1.2.dev2/examples/pipeline-ensemble/requirements.txt +0 -1
- nextpipe-0.1.2.dev2/examples/pipeline-foreach/requirements.txt +0 -1
- nextpipe-0.1.2.dev2/examples/pipeline-preprocess/requirements.txt +0 -1
- nextpipe-0.1.2.dev2/nextpipe/__about__.py +0 -1
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/lint.yml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/release.yml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/test.yml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.gitignore +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.nextmv/bump_requirements.sh +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.prettierrc.yml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/LICENSE.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/.gitignore +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/input.json +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/requirements.txt +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/__init__.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/config.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/decorators.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/graph.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/schema.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/threads.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/uplink.py +3 -3
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/utils.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe.code-workspace +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/pyproject.toml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/.gitignore +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/__init__.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/.gitignore +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/README.md +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/requirements.txt +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/app.yaml +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/main.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/requirements.txt +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.json +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.json.golden +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.json +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.json.golden +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/fail.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.json +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.json.golden +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.json +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.json.golden +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_graph.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_integration.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_threads.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_uplink.py +0 -0
- {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nextpipe==0.1.2.dev.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nextpipe==0.1.2.dev.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nextpipe==0.1.2.dev.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nextpipe==0.1.2.dev.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nextpipe==0.1.2.dev.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "v0.1.2.dev4"
|
|
@@ -40,7 +40,7 @@ class FlowNode:
|
|
|
40
40
|
self.id = f"{parent.definition.get_id()}_{index}"
|
|
41
41
|
self.status: str = "pending"
|
|
42
42
|
self.error: str = None
|
|
43
|
-
self.
|
|
43
|
+
self.predecessors: list[FlowNode] = []
|
|
44
44
|
self.run_id: str = None
|
|
45
45
|
self.result: any = None
|
|
46
46
|
self.done: bool = False
|
|
@@ -133,9 +133,9 @@ class FlowGraph:
|
|
|
133
133
|
if not step.definition.is_needs():
|
|
134
134
|
continue
|
|
135
135
|
for predecessor in step.definition.needs.predecessors:
|
|
136
|
-
|
|
137
|
-
step.predecessors.append(
|
|
138
|
-
|
|
136
|
+
predecessor_step = self.steps_by_definition[predecessor.step]
|
|
137
|
+
step.predecessors.append(predecessor_step)
|
|
138
|
+
predecessor_step.successors.append(step)
|
|
139
139
|
|
|
140
140
|
self.start_steps = [step for step in self.steps if not step.predecessors]
|
|
141
141
|
|
|
@@ -195,7 +195,7 @@ class FlowGraph:
|
|
|
195
195
|
id=step.definition.get_id(),
|
|
196
196
|
app_id=step.definition.get_app_id(),
|
|
197
197
|
docs=step.docstring,
|
|
198
|
-
predecessors=[s.definition.get_id() for s in step.
|
|
198
|
+
predecessors=[s.definition.get_id() for s in step.predecessors],
|
|
199
199
|
)
|
|
200
200
|
for step in self.steps
|
|
201
201
|
],
|
|
@@ -203,7 +203,7 @@ class FlowGraph:
|
|
|
203
203
|
uplink.NodeDTO(
|
|
204
204
|
id=node.id,
|
|
205
205
|
parent_id=node.parent.definition.get_id(),
|
|
206
|
-
predecessor_ids=[p.id for p in node.
|
|
206
|
+
predecessor_ids=[p.id for p in node.predecessors],
|
|
207
207
|
status=node.status,
|
|
208
208
|
run_id=node.run_id,
|
|
209
209
|
)
|
|
@@ -399,6 +399,7 @@ class Runner:
|
|
|
399
399
|
def run(self):
|
|
400
400
|
# Start communicating updates to the platform
|
|
401
401
|
try:
|
|
402
|
+
self.uplink.submit_update(self.graph._to_uplink_dto())
|
|
402
403
|
self.uplink.run_async()
|
|
403
404
|
except Exception as e:
|
|
404
405
|
self.uplink.terminate()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nextpipe==0.1.2.dev.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nextpipe==0.1.2.dev.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nextpipe==0.1.2.dev.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nextpipe==0.1.2.dev.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nextpipe==0.1.2.dev.2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "v0.1.2.dev2"
|
|
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
|
|
@@ -168,9 +168,6 @@ class UplinkClient:
|
|
|
168
168
|
|
|
169
169
|
def run():
|
|
170
170
|
while not self._terminate:
|
|
171
|
-
# Sleep
|
|
172
|
-
time.sleep(UPDATE_INTERVAL)
|
|
173
|
-
log_internal("Uplink client is running...")
|
|
174
171
|
# Post update, if any
|
|
175
172
|
if self.changed:
|
|
176
173
|
with self._lock:
|
|
@@ -186,6 +183,9 @@ class UplinkClient:
|
|
|
186
183
|
self._terminate = True
|
|
187
184
|
else:
|
|
188
185
|
self._updates_failed = 0
|
|
186
|
+
# Sleep
|
|
187
|
+
time.sleep(UPDATE_INTERVAL)
|
|
188
|
+
log_internal("Uplink client is running...")
|
|
189
189
|
|
|
190
190
|
# Signal termination
|
|
191
191
|
self._terminated = True
|
|
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
|