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.
Files changed (83) hide show
  1. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/PKG-INFO +1 -1
  2. nextpipe-0.1.2.dev4/examples/pipeline-chain/requirements.txt +1 -0
  3. nextpipe-0.1.2.dev4/examples/pipeline-complex/requirements.txt +1 -0
  4. nextpipe-0.1.2.dev4/examples/pipeline-ensemble/requirements.txt +1 -0
  5. nextpipe-0.1.2.dev4/examples/pipeline-foreach/requirements.txt +1 -0
  6. nextpipe-0.1.2.dev4/examples/pipeline-preprocess/requirements.txt +1 -0
  7. nextpipe-0.1.2.dev4/nextpipe/__about__.py +1 -0
  8. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/flow.py +7 -6
  9. nextpipe-0.1.2.dev2/examples/pipeline-chain/requirements.txt +0 -1
  10. nextpipe-0.1.2.dev2/examples/pipeline-complex/requirements.txt +0 -1
  11. nextpipe-0.1.2.dev2/examples/pipeline-ensemble/requirements.txt +0 -1
  12. nextpipe-0.1.2.dev2/examples/pipeline-foreach/requirements.txt +0 -1
  13. nextpipe-0.1.2.dev2/examples/pipeline-preprocess/requirements.txt +0 -1
  14. nextpipe-0.1.2.dev2/nextpipe/__about__.py +0 -1
  15. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/lint.yml +0 -0
  16. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/release.yml +0 -0
  17. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.github/workflows/test.yml +0 -0
  18. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.gitignore +0 -0
  19. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.nextmv/bump_requirements.sh +0 -0
  20. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/.prettierrc.yml +0 -0
  21. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/LICENSE.md +0 -0
  22. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/README.md +0 -0
  23. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/README.md +0 -0
  24. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/.gitignore +0 -0
  25. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/README.md +0 -0
  26. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/app.yaml +0 -0
  27. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/input.json +0 -0
  28. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/main.py +0 -0
  29. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/apps/echo/requirements.txt +0 -0
  30. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/README.md +0 -0
  31. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/app.yaml +0 -0
  32. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-chain/main.py +0 -0
  33. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/README.md +0 -0
  34. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/app.yaml +0 -0
  35. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-complex/main.py +0 -0
  36. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/README.md +0 -0
  37. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/app.yaml +0 -0
  38. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-ensemble/main.py +0 -0
  39. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/README.md +0 -0
  40. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/app.yaml +0 -0
  41. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-foreach/main.py +0 -0
  42. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/README.md +0 -0
  43. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/app.yaml +0 -0
  44. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/examples/pipeline-preprocess/main.py +0 -0
  45. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/__init__.py +0 -0
  46. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/config.py +0 -0
  47. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/decorators.py +0 -0
  48. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/graph.py +0 -0
  49. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/schema.py +0 -0
  50. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/threads.py +0 -0
  51. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/uplink.py +3 -3
  52. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe/utils.py +0 -0
  53. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/nextpipe.code-workspace +0 -0
  54. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/pyproject.toml +0 -0
  55. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/.gitignore +0 -0
  56. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/README.md +0 -0
  57. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/__init__.py +0 -0
  58. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/.gitignore +0 -0
  59. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/README.md +0 -0
  60. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/app.yaml +0 -0
  61. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/main.py +0 -0
  62. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/apps/echo/requirements.txt +0 -0
  63. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/app.yaml +0 -0
  64. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/main.py +0 -0
  65. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/deploy/requirements.txt +0 -0
  66. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.json +0 -0
  67. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.json.golden +0 -0
  68. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/chain.py +0 -0
  69. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.json +0 -0
  70. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.json.golden +0 -0
  71. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/complex.py +0 -0
  72. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/fail.py +0 -0
  73. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.json +0 -0
  74. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.json.golden +0 -0
  75. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach-2-pred.py +0 -0
  76. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.json +0 -0
  77. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.json.golden +0 -0
  78. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/pipelines/foreach.py +0 -0
  79. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_graph.py +0 -0
  80. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_integration.py +0 -0
  81. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_threads.py +0 -0
  82. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_uplink.py +0 -0
  83. {nextpipe-0.1.2.dev2 → nextpipe-0.1.2.dev4}/tests/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextpipe
3
- Version: 0.1.2.dev2
3
+ Version: 0.1.2.dev4
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://www.nextmv.io/docs
@@ -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.successors: list[FlowNode] = []
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
- predecessor_node = self.steps_by_definition[predecessor.step]
137
- step.predecessors.append(predecessor_node)
138
- predecessor_node.successors.append(step)
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.successors],
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.successors],
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
@@ -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