hatchet-sdk 1.12.1__py3-none-any.whl → 1.12.3__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 hatchet-sdk might be problematic. Click here for more details.
- hatchet_sdk/runnables/task.py +1 -1
- hatchet_sdk/runnables/workflow.py +4 -2
- {hatchet_sdk-1.12.1.dist-info → hatchet_sdk-1.12.3.dist-info}/METADATA +2 -2
- {hatchet_sdk-1.12.1.dist-info → hatchet_sdk-1.12.3.dist-info}/RECORD +6 -6
- {hatchet_sdk-1.12.1.dist-info → hatchet_sdk-1.12.3.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.12.1.dist-info → hatchet_sdk-1.12.3.dist-info}/entry_points.txt +0 -0
hatchet_sdk/runnables/task.py
CHANGED
|
@@ -122,7 +122,7 @@ class Task(Generic[TWorkflowInput, R]):
|
|
|
122
122
|
else:
|
|
123
123
|
fn = cast(Callable[[TWorkflowInput, Context], R], self.fn)
|
|
124
124
|
if is_sync_fn(fn):
|
|
125
|
-
return fn(workflow_input,
|
|
125
|
+
return fn(workflow_input, ctx)
|
|
126
126
|
|
|
127
127
|
raise TypeError(f"{self.name} is not a sync function. Use `acall` instead.")
|
|
128
128
|
|
|
@@ -273,9 +273,11 @@ class BaseWorkflow(Generic[TWorkflowInput]):
|
|
|
273
273
|
if not workflows.rows:
|
|
274
274
|
raise ValueError(f"No id found for {self.name}")
|
|
275
275
|
|
|
276
|
-
workflow
|
|
276
|
+
for workflow in workflows.rows:
|
|
277
|
+
if workflow.name == self.name:
|
|
278
|
+
return workflow.metadata.id
|
|
277
279
|
|
|
278
|
-
|
|
280
|
+
raise ValueError(f"No id found for {self.name}")
|
|
279
281
|
|
|
280
282
|
def list_runs(
|
|
281
283
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hatchet-sdk
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.3
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Alexander Belanger
|
|
@@ -27,7 +27,7 @@ Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.28.0,<2.0.0) ; extra
|
|
|
27
27
|
Requires-Dist: opentelemetry-instrumentation (>=0.49b0) ; extra == "otel"
|
|
28
28
|
Requires-Dist: opentelemetry-sdk (>=1.28.0,<2.0.0) ; extra == "otel"
|
|
29
29
|
Requires-Dist: prometheus-client (>=0.21.1,<0.22.0)
|
|
30
|
-
Requires-Dist: protobuf (>=5.29.
|
|
30
|
+
Requires-Dist: protobuf (>=5.29.5,<6.0.0)
|
|
31
31
|
Requires-Dist: pydantic (>=2.6.3,<3.0.0)
|
|
32
32
|
Requires-Dist: pydantic-settings (>=2.7.1,<3.0.0)
|
|
33
33
|
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
|
@@ -273,9 +273,9 @@ hatchet_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
273
273
|
hatchet_sdk/rate_limit.py,sha256=TwbCuggiZaWpYuo4mjVLlE-z1OfQ2mRBiVvCSaG3lv4,3919
|
|
274
274
|
hatchet_sdk/runnables/action.py,sha256=3B4VpiWIExiWE6kZBKP8EXXpRbkHrHt-L6hC6w8FZRo,4402
|
|
275
275
|
hatchet_sdk/runnables/contextvars.py,sha256=3hXlW03FNg2sEq8_A7wMPf_c7FTNuZqg5U9n2S2_hgg,580
|
|
276
|
-
hatchet_sdk/runnables/task.py,sha256=
|
|
276
|
+
hatchet_sdk/runnables/task.py,sha256=CuPcwmYwVHE-gMh_-qvi4ZV04cYPzUtoP8b3qEtD1Iw,7048
|
|
277
277
|
hatchet_sdk/runnables/types.py,sha256=90JLuwEgRnPlaxS84DCpxjtPzIsN2KLtYQvFvoV_ZIU,4344
|
|
278
|
-
hatchet_sdk/runnables/workflow.py,sha256=
|
|
278
|
+
hatchet_sdk/runnables/workflow.py,sha256=d317CSzTN0pHxqNHeu47EsTdEUDWuc2p4iLzbY4IRZc,48625
|
|
279
279
|
hatchet_sdk/token.py,sha256=KjIiInwG5Kqd_FO4BSW1x_5Uc7PFbnzIVJqr50-ZldE,779
|
|
280
280
|
hatchet_sdk/utils/backoff.py,sha256=6B5Rb5nLKw_TqqgpJMYjIBV1PTTtbOMRZCveisVhg_I,353
|
|
281
281
|
hatchet_sdk/utils/opentelemetry.py,sha256=64TVwCLrUzEmcL2BUNPV_QubfiR5jajOZtVeGYLnEEA,1226
|
|
@@ -521,7 +521,7 @@ hatchet_sdk/worker/runner/runner.py,sha256=9Z3Ac6hRh5rjet7-BRtpcFARlhWvy6TNrdsdj
|
|
|
521
521
|
hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=nHRPSiDBqzhObM7i2X7t03OupVFnE7kQBdR2Ckgg-2w,2709
|
|
522
522
|
hatchet_sdk/worker/worker.py,sha256=SAucu3dg8lkKLbzb3noNWvClZ09lC5tuRcBkYZtIJ-0,16088
|
|
523
523
|
hatchet_sdk/workflow_run.py,sha256=ZwH0HLFGFVXz6jbiqSv4w0Om2XuR52Tzzw6LH4y65jQ,2765
|
|
524
|
-
hatchet_sdk-1.12.
|
|
525
|
-
hatchet_sdk-1.12.
|
|
526
|
-
hatchet_sdk-1.12.
|
|
527
|
-
hatchet_sdk-1.12.
|
|
524
|
+
hatchet_sdk-1.12.3.dist-info/METADATA,sha256=JifcvdoIfrmwJvUOI2FeQfGiKmovJrM1aTVWOU2Nd6o,3636
|
|
525
|
+
hatchet_sdk-1.12.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
526
|
+
hatchet_sdk-1.12.3.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
|
|
527
|
+
hatchet_sdk-1.12.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|