hatchet-sdk 1.12.2__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.

@@ -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 = workflows.rows[0]
276
+ for workflow in workflows.rows:
277
+ if workflow.name == self.name:
278
+ return workflow.metadata.id
277
279
 
278
- return workflow.metadata.id
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.2
3
+ Version: 1.12.3
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Alexander Belanger
@@ -275,7 +275,7 @@ hatchet_sdk/runnables/action.py,sha256=3B4VpiWIExiWE6kZBKP8EXXpRbkHrHt-L6hC6w8FZ
275
275
  hatchet_sdk/runnables/contextvars.py,sha256=3hXlW03FNg2sEq8_A7wMPf_c7FTNuZqg5U9n2S2_hgg,580
276
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=itJjwocsUMak_-b_pG3GGfTN3i57VWdKdrFyePyLsaU,48514
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.2.dist-info/METADATA,sha256=_osYMPZOCw0sS6x8ktBU-fYeNsE0yAJfsuTHh5dcMX8,3636
525
- hatchet_sdk-1.12.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
526
- hatchet_sdk-1.12.2.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
527
- hatchet_sdk-1.12.2.dist-info/RECORD,,
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,,