digitalhub 0.8.0b4__py3-none-any.whl → 0.8.0b5__py3-none-any.whl
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.
Potentially problematic release.
This version of digitalhub might be problematic. Click here for more details.
- digitalhub/entities/run/_base/entity.py +13 -5
- {digitalhub-0.8.0b4.dist-info → digitalhub-0.8.0b5.dist-info}/METADATA +1 -1
- {digitalhub-0.8.0b4.dist-info → digitalhub-0.8.0b5.dist-info}/RECORD +6 -6
- {digitalhub-0.8.0b4.dist-info → digitalhub-0.8.0b5.dist-info}/LICENSE.txt +0 -0
- {digitalhub-0.8.0b4.dist-info → digitalhub-0.8.0b5.dist-info}/WHEEL +0 -0
- {digitalhub-0.8.0b4.dist-info → digitalhub-0.8.0b5.dist-info}/top_level.txt +0 -0
|
@@ -86,16 +86,15 @@ class Run(UnversionedEntity):
|
|
|
86
86
|
self._set_state(State.RUNNING.value)
|
|
87
87
|
self.save(update=True)
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
try:
|
|
91
|
-
self.spec.inputs = self.inputs(as_dict=True)
|
|
92
|
-
except EntityError:
|
|
93
|
-
pass
|
|
89
|
+
self._setup_execution()
|
|
94
90
|
|
|
95
91
|
try:
|
|
96
92
|
status = self._get_runtime().run(self.to_dict())
|
|
97
93
|
except Exception as e:
|
|
98
94
|
self.refresh()
|
|
95
|
+
import pdb
|
|
96
|
+
|
|
97
|
+
pdb.set_trace()
|
|
99
98
|
if self.spec.local_execution:
|
|
100
99
|
self._set_state(State.ERROR.value)
|
|
101
100
|
self._set_message(str(e))
|
|
@@ -194,6 +193,15 @@ class Run(UnversionedEntity):
|
|
|
194
193
|
# Helpers
|
|
195
194
|
##############################
|
|
196
195
|
|
|
196
|
+
def _setup_execution(self) -> None:
|
|
197
|
+
"""
|
|
198
|
+
Setup run execution. In base class, nothing to do.
|
|
199
|
+
|
|
200
|
+
Returns
|
|
201
|
+
-------
|
|
202
|
+
None
|
|
203
|
+
"""
|
|
204
|
+
|
|
197
205
|
def _is_ready_to_run(self) -> bool:
|
|
198
206
|
"""
|
|
199
207
|
Check if run is in a state ready for running (BUILT or STOPPED).
|
|
@@ -146,7 +146,7 @@ digitalhub/entities/run/builder.py,sha256=Cx8dg_hytb3E0cGhqlpVUNHlQtydXmzP5AT-oq
|
|
|
146
146
|
digitalhub/entities/run/crud.py,sha256=TE8xbcA8VmUO0Po89yafdIpXNRKM-ZS6mYbRNjPUS4A,5017
|
|
147
147
|
digitalhub/entities/run/_base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
148
148
|
digitalhub/entities/run/_base/builder.py,sha256=pwHGoUr9DXXpzqwmmBY5Pznv-UVeX4U5vpwm2olzDLI,1763
|
|
149
|
-
digitalhub/entities/run/_base/entity.py,sha256=
|
|
149
|
+
digitalhub/entities/run/_base/entity.py,sha256=D9wZ-4FnbXlEHHQ4UsTNZcZaKHOM4JuE3OwT34po8Vw,8510
|
|
150
150
|
digitalhub/entities/run/_base/spec.py,sha256=KKIwKBe2asOQq-CKI7NbveGUvYnQfaVrnS92IEJ-e0s,3929
|
|
151
151
|
digitalhub/entities/run/_base/status.py,sha256=be2TK_KcLwEA5uhpkQXBQHDTc6bPaaIz3e9UZuVhXq4,2850
|
|
152
152
|
digitalhub/entities/secret/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -225,8 +225,8 @@ test/local/CRUD/test_artifacts.py,sha256=Y3J_C7SDRSsQd2SGIZjPIOvyTL92B1sTFrUONG3
|
|
|
225
225
|
test/local/CRUD/test_dataitems.py,sha256=LQqTzI59uwTGy4zoq8jL0yWVe2W9vXlatkgDU9aB6xg,2968
|
|
226
226
|
test/local/CRUD/test_models.py,sha256=msosbZuRwIMbZtmi3ZaOva4TjQ4lrzkNu9AguIFhrSo,2929
|
|
227
227
|
test/local/imports/test_imports.py,sha256=W-YugO0rpJwvtWp57MXaXfEmE-f5iWuCiLY-n0ZU4z8,1271
|
|
228
|
-
digitalhub-0.8.
|
|
229
|
-
digitalhub-0.8.
|
|
230
|
-
digitalhub-0.8.
|
|
231
|
-
digitalhub-0.8.
|
|
232
|
-
digitalhub-0.8.
|
|
228
|
+
digitalhub-0.8.0b5.dist-info/LICENSE.txt,sha256=_yVOtnbW7Ss28mp058UEEc1X4Rgj8-kQBP_kj8_Sc88,11585
|
|
229
|
+
digitalhub-0.8.0b5.dist-info/METADATA,sha256=geRW9AxR0yT9UG24gY5ggWu0Kg5uIXv5q1fvuaVcrlE,15288
|
|
230
|
+
digitalhub-0.8.0b5.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
231
|
+
digitalhub-0.8.0b5.dist-info/top_level.txt,sha256=ae9pDfCF27ZoaVAxuBKONMP0lm5P-N_I-e-no1WlvD8,16
|
|
232
|
+
digitalhub-0.8.0b5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|