hatchet-sdk 1.14.3__py3-none-any.whl → 1.14.4__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/features/workflows.py +25 -0
- hatchet_sdk/runnables/workflow.py +16 -0
- {hatchet_sdk-1.14.3.dist-info → hatchet_sdk-1.14.4.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.14.3.dist-info → hatchet_sdk-1.14.4.dist-info}/RECORD +6 -6
- {hatchet_sdk-1.14.3.dist-info → hatchet_sdk-1.14.4.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.14.3.dist-info → hatchet_sdk-1.14.4.dist-info}/entry_points.txt +0 -0
|
@@ -108,3 +108,28 @@ class WorkflowsClient(BaseRestClient):
|
|
|
108
108
|
:return: The workflow version.
|
|
109
109
|
"""
|
|
110
110
|
return await asyncio.to_thread(self.get_version, workflow_id, version)
|
|
111
|
+
|
|
112
|
+
def delete(self, workflow_id: str) -> None:
|
|
113
|
+
"""
|
|
114
|
+
Permanently delete a workflow.
|
|
115
|
+
|
|
116
|
+
**DANGEROUS: This will delete a workflow and all of its data**
|
|
117
|
+
|
|
118
|
+
:param workflow_id: The ID of the workflow to delete.
|
|
119
|
+
:return: None
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
with self.client() as client:
|
|
123
|
+
return self._wa(client).workflow_delete(workflow_id)
|
|
124
|
+
|
|
125
|
+
async def aio_delete(self, workflow_id: str) -> None:
|
|
126
|
+
"""
|
|
127
|
+
Permanently delete a workflow.
|
|
128
|
+
|
|
129
|
+
**DANGEROUS: This will delete a workflow and all of its data**
|
|
130
|
+
|
|
131
|
+
:param workflow_id: The ID of the workflow to delete.
|
|
132
|
+
:return: None
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
return await asyncio.to_thread(self.delete, workflow_id)
|
|
@@ -509,6 +509,22 @@ class BaseWorkflow(Generic[TWorkflowInput]):
|
|
|
509
509
|
priority=priority,
|
|
510
510
|
)
|
|
511
511
|
|
|
512
|
+
def delete(self) -> None:
|
|
513
|
+
"""
|
|
514
|
+
Permanently delete the workflow.
|
|
515
|
+
|
|
516
|
+
**DANGEROUS: This will delete a workflow and all of its data**
|
|
517
|
+
"""
|
|
518
|
+
self.client.workflows.delete(self.id)
|
|
519
|
+
|
|
520
|
+
async def aio_delete(self) -> None:
|
|
521
|
+
"""
|
|
522
|
+
Permanently delete the workflow.
|
|
523
|
+
|
|
524
|
+
**DANGEROUS: This will delete a workflow and all of its data**
|
|
525
|
+
"""
|
|
526
|
+
await self.client.workflows.aio_delete(self.id)
|
|
527
|
+
|
|
512
528
|
|
|
513
529
|
class Workflow(BaseWorkflow[TWorkflowInput]):
|
|
514
530
|
"""
|
|
@@ -264,7 +264,7 @@ hatchet_sdk/features/runs.py,sha256=8geS5l1CU3GCLudFORmCvXyjVVcgNKsNAPV9mLcI8sU,
|
|
|
264
264
|
hatchet_sdk/features/scheduled.py,sha256=t7YA9CoJrzBhH82ChTSFWaTF_dyoC9i1O_wf9ywsphc,8939
|
|
265
265
|
hatchet_sdk/features/tenant.py,sha256=xkhh5mRKCWbunk_S1iBmGR-DYR-F4mjxk8jLyYUyzNE,886
|
|
266
266
|
hatchet_sdk/features/workers.py,sha256=DVdno28RmtlfhMJUkaPcOMHNKXCPV0RFrXtLqV6zWyE,2600
|
|
267
|
-
hatchet_sdk/features/workflows.py,sha256=
|
|
267
|
+
hatchet_sdk/features/workflows.py,sha256=WTt58imAFRrEEB3M5hEEIBwNtrzdWbITFpgtsIqJNSM,4770
|
|
268
268
|
hatchet_sdk/hatchet.py,sha256=rOuE7YPqu4setE_zGbmgvb2WN-q8HNXTDFYcp9N0Wj8,25759
|
|
269
269
|
hatchet_sdk/labels.py,sha256=nATgxWE3lFxRTnfISEpoIRLGbMfAZsHF4lZTuG4Mfic,182
|
|
270
270
|
hatchet_sdk/logger.py,sha256=5uOr52T4mImSQm1QvWT8HvZFK5WfPNh3Y1cBQZRFgUQ,333
|
|
@@ -276,7 +276,7 @@ hatchet_sdk/runnables/action.py,sha256=zrVHpyzIQ9XZgWwY69b_6uhZd53An4trRoLd9b3os
|
|
|
276
276
|
hatchet_sdk/runnables/contextvars.py,sha256=T2LWiXhcSyQYJY_-pfqMjDNjf6PdtDwyXyCZ6zIyWK0,929
|
|
277
277
|
hatchet_sdk/runnables/task.py,sha256=VEYabAl38U9L_igSDgZSzUL7-c-sX6YFRP0wsqGTadU,6714
|
|
278
278
|
hatchet_sdk/runnables/types.py,sha256=QFayOJ_Oi8tOYI6Sjl9bwjftM96QZh9XIlfFnSNgEXI,4359
|
|
279
|
-
hatchet_sdk/runnables/workflow.py,sha256=
|
|
279
|
+
hatchet_sdk/runnables/workflow.py,sha256=9Vq4T0goR4dG_bzarEog9ui-8mef9YmvPICk0CRHf3I,49673
|
|
280
280
|
hatchet_sdk/token.py,sha256=KjIiInwG5Kqd_FO4BSW1x_5Uc7PFbnzIVJqr50-ZldE,779
|
|
281
281
|
hatchet_sdk/utils/aio.py,sha256=cu1rD_UZkShtfzi7iXMYwBBaCRdxJQTdUC0_mf8nU2E,499
|
|
282
282
|
hatchet_sdk/utils/backoff.py,sha256=6B5Rb5nLKw_TqqgpJMYjIBV1PTTtbOMRZCveisVhg_I,353
|
|
@@ -514,7 +514,7 @@ hatchet_sdk/worker/runner/runner.py,sha256=Btz7wd0DQ-5aPEZLN3T5X5__8DjuxN6H4yQEV
|
|
|
514
514
|
hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=DKw6boqVsSCM1XvBWYuc833MZxCdSpMxg3l4aAqKPyw,3465
|
|
515
515
|
hatchet_sdk/worker/worker.py,sha256=nDuRo_LishRuOCTnDonc7G7qeOoW93nRHGd-fQOE_bs,16541
|
|
516
516
|
hatchet_sdk/workflow_run.py,sha256=KcylcqRwKADtnzOTjoiVr1vdr7qTZFtDeD5aRS6A4Y8,2823
|
|
517
|
-
hatchet_sdk-1.14.
|
|
518
|
-
hatchet_sdk-1.14.
|
|
519
|
-
hatchet_sdk-1.14.
|
|
520
|
-
hatchet_sdk-1.14.
|
|
517
|
+
hatchet_sdk-1.14.4.dist-info/METADATA,sha256=RnI_R_0aYYdHdr5BJjxCRAlkdDyhHZjG5PU_eYx8xBs,3636
|
|
518
|
+
hatchet_sdk-1.14.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
519
|
+
hatchet_sdk-1.14.4.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
|
|
520
|
+
hatchet_sdk-1.14.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|