clerk-sdk 0.4.0__py3-none-any.whl → 0.4.1__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.
- clerk/decorator/task_decorator.py +4 -4
- {clerk_sdk-0.4.0.dist-info → clerk_sdk-0.4.1.dist-info}/METADATA +1 -1
- {clerk_sdk-0.4.0.dist-info → clerk_sdk-0.4.1.dist-info}/RECORD +6 -6
- {clerk_sdk-0.4.0.dist-info → clerk_sdk-0.4.1.dist-info}/WHEEL +0 -0
- {clerk_sdk-0.4.0.dist-info → clerk_sdk-0.4.1.dist-info}/licenses/LICENSE +0 -0
- {clerk_sdk-0.4.0.dist-info → clerk_sdk-0.4.1.dist-info}/top_level.txt +0 -0
|
@@ -13,7 +13,9 @@ output_pkl: str = "/app/data/output/output.pkl"
|
|
|
13
13
|
def clerk_code():
|
|
14
14
|
def decorator(func: Callable[[ClerkCodePayload], ClerkCodePayload]):
|
|
15
15
|
@wraps(func)
|
|
16
|
-
def wrapper(
|
|
16
|
+
def wrapper(
|
|
17
|
+
payload: Optional[ClerkCodePayload] = None,
|
|
18
|
+
) -> ClerkCodePayload | None:
|
|
17
19
|
# 1. Load payload from file if not provided
|
|
18
20
|
use_pickle = False
|
|
19
21
|
output: ClerkCodePayload | BaseException | None = None
|
|
@@ -57,6 +59,7 @@ def clerk_code():
|
|
|
57
59
|
message=str(e),
|
|
58
60
|
traceback=traceback.format_exc(),
|
|
59
61
|
)
|
|
62
|
+
output = error_info
|
|
60
63
|
|
|
61
64
|
# 3. write to output.pkl
|
|
62
65
|
try:
|
|
@@ -88,9 +91,6 @@ def clerk_code():
|
|
|
88
91
|
if isinstance(output, Exception):
|
|
89
92
|
raise output
|
|
90
93
|
|
|
91
|
-
if output is None:
|
|
92
|
-
raise RuntimeError("output object cannot be None")
|
|
93
|
-
|
|
94
94
|
return output
|
|
95
95
|
|
|
96
96
|
return wrapper
|
|
@@ -3,7 +3,7 @@ clerk/base.py,sha256=S1RKc2pBw2FPlVjefJzsNtyTDPB0UG46C2K_QVV1opA,4008
|
|
|
3
3
|
clerk/client.py,sha256=cgDOO9fRfJAoV5_r6PCoPWoAY0OwoeEMT3cEkzUSZOI,1612
|
|
4
4
|
clerk/decorator/__init__.py,sha256=yGGcS17VsZ7cZ-hVGCm3I3vGDJMiJIAqmDGzriIi0DI,65
|
|
5
5
|
clerk/decorator/models.py,sha256=PiAugPvX1c6BQBWtfhyh5k9Uau2OJNDIx7T1TLz7ZFY,409
|
|
6
|
-
clerk/decorator/task_decorator.py,sha256=
|
|
6
|
+
clerk/decorator/task_decorator.py,sha256=H8caRvNvvl-IRwyREP66gBGVM-SpQJ1W7oAFImO-6Jw,3769
|
|
7
7
|
clerk/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
clerk/exceptions/exceptions.py,sha256=gSCma06b6W6c0NrA2rhzd5YjFhZGa6caShX07lo-_3E,1291
|
|
9
9
|
clerk/exceptions/remote_device.py,sha256=R0Vfmk8ejibEFeV29A8Vqst2YA6yxdqEX9lP5wWubgM,134
|
|
@@ -46,8 +46,8 @@ clerk/models/ui_operator.py,sha256=mKTJUFZgv7PeEt5oys28HVZxHOJsofmRQOcRpqj0dbU,2
|
|
|
46
46
|
clerk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
clerk/utils/logger.py,sha256=vHbp-lUK3W3c5fhyPsp05p9LGyDHj95v8XM_XQ_FlLc,3691
|
|
48
48
|
clerk/utils/save_artifact.py,sha256=94aYkYNVGcSUaSWZmdjiY6Oc-3yCKb2XWCZ56IAXQqk,1158
|
|
49
|
-
clerk_sdk-0.4.
|
|
50
|
-
clerk_sdk-0.4.
|
|
51
|
-
clerk_sdk-0.4.
|
|
52
|
-
clerk_sdk-0.4.
|
|
53
|
-
clerk_sdk-0.4.
|
|
49
|
+
clerk_sdk-0.4.1.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
|
|
50
|
+
clerk_sdk-0.4.1.dist-info/METADATA,sha256=50SHt0qwDSsCh5X8ew-k-NBccXZdCyrJ75EuNK7Cm5o,3508
|
|
51
|
+
clerk_sdk-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
clerk_sdk-0.4.1.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
|
|
53
|
+
clerk_sdk-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|