hatchet-sdk 1.3.0__py3-none-any.whl → 1.3.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.
Potentially problematic release.
This version of hatchet-sdk might be problematic. Click here for more details.
- hatchet_sdk/clients/rest/models/v1_task_summary.py +2 -2
- hatchet_sdk/clients/rest/models/v1_workflow_run.py +5 -0
- hatchet_sdk/clients/rest/models/workflow_runs_metrics.py +1 -5
- hatchet_sdk/workflow_run.py +4 -1
- {hatchet_sdk-1.3.0.dist-info → hatchet_sdk-1.3.1.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.3.0.dist-info → hatchet_sdk-1.3.1.dist-info}/RECORD +8 -8
- {hatchet_sdk-1.3.0.dist-info → hatchet_sdk-1.3.1.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.3.0.dist-info → hatchet_sdk-1.3.1.dist-info}/entry_points.txt +0 -0
|
@@ -34,8 +34,8 @@ class V1TaskSummary(BaseModel):
|
|
|
34
34
|
""" # noqa: E501
|
|
35
35
|
|
|
36
36
|
metadata: APIResourceMeta
|
|
37
|
-
action_id: StrictStr = Field(
|
|
38
|
-
description="The action ID of the task.", alias="actionId"
|
|
37
|
+
action_id: Optional[StrictStr] = Field(
|
|
38
|
+
default=None, description="The action ID of the task.", alias="actionId"
|
|
39
39
|
)
|
|
40
40
|
additional_metadata: Optional[Dict[str, Any]] = Field(
|
|
41
41
|
default=None,
|
|
@@ -78,6 +78,9 @@ class V1WorkflowRun(BaseModel):
|
|
|
78
78
|
description="The timestamp the task run was created.",
|
|
79
79
|
alias="createdAt",
|
|
80
80
|
)
|
|
81
|
+
parent_task_external_id: Optional[
|
|
82
|
+
Annotated[str, Field(min_length=36, strict=True, max_length=36)]
|
|
83
|
+
] = Field(default=None, alias="parentTaskExternalId")
|
|
81
84
|
__properties: ClassVar[List[str]] = [
|
|
82
85
|
"metadata",
|
|
83
86
|
"status",
|
|
@@ -93,6 +96,7 @@ class V1WorkflowRun(BaseModel):
|
|
|
93
96
|
"workflowVersionId",
|
|
94
97
|
"input",
|
|
95
98
|
"createdAt",
|
|
99
|
+
"parentTaskExternalId",
|
|
96
100
|
]
|
|
97
101
|
|
|
98
102
|
model_config = ConfigDict(
|
|
@@ -166,6 +170,7 @@ class V1WorkflowRun(BaseModel):
|
|
|
166
170
|
"workflowVersionId": obj.get("workflowVersionId"),
|
|
167
171
|
"input": obj.get("input"),
|
|
168
172
|
"createdAt": obj.get("createdAt"),
|
|
173
|
+
"parentTaskExternalId": obj.get("parentTaskExternalId"),
|
|
169
174
|
}
|
|
170
175
|
)
|
|
171
176
|
return _obj
|
|
@@ -22,17 +22,13 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
22
22
|
from pydantic import BaseModel, ConfigDict
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
from hatchet_sdk.clients.rest.models.workflow_runs_metrics_counts import (
|
|
26
|
-
WorkflowRunsMetricsCounts,
|
|
27
|
-
)
|
|
28
|
-
|
|
29
25
|
|
|
30
26
|
class WorkflowRunsMetrics(BaseModel):
|
|
31
27
|
"""
|
|
32
28
|
WorkflowRunsMetrics
|
|
33
29
|
""" # noqa: E501
|
|
34
30
|
|
|
35
|
-
counts: Optional[
|
|
31
|
+
counts: Optional[Dict[str, Any]] = None
|
|
36
32
|
__properties: ClassVar[List[str]] = ["counts"]
|
|
37
33
|
|
|
38
34
|
model_config = ConfigDict(
|
hatchet_sdk/workflow_run.py
CHANGED
|
@@ -32,7 +32,10 @@ class WorkflowRunRef:
|
|
|
32
32
|
async def aio_result(self) -> dict[str, Any]:
|
|
33
33
|
return await self.workflow_run_listener.aio_result(self.workflow_run_id)
|
|
34
34
|
|
|
35
|
-
def _safely_get_action_name(self, action_id: str) -> str | None:
|
|
35
|
+
def _safely_get_action_name(self, action_id: str | None) -> str | None:
|
|
36
|
+
if not action_id:
|
|
37
|
+
return None
|
|
38
|
+
|
|
36
39
|
try:
|
|
37
40
|
return action_id.split(":", maxsplit=1)[1]
|
|
38
41
|
except IndexError:
|
|
@@ -165,10 +165,10 @@ hatchet_sdk/clients/rest/models/v1_task_point_metrics.py,sha256=shKqLFLgNAKua865
|
|
|
165
165
|
hatchet_sdk/clients/rest/models/v1_task_run_metric.py,sha256=8trEgJ_7AHAmUQi2Qty-v5XVjgN3g7VZ6gzMTjeZ1tY,2504
|
|
166
166
|
hatchet_sdk/clients/rest/models/v1_task_run_status.py,sha256=tjipWHHNx7g4lUZBdu_DDZwEqSpxPKv06YiE2Q17cXo,753
|
|
167
167
|
hatchet_sdk/clients/rest/models/v1_task_status.py,sha256=4Hqczjth228k8Y23vIaxAIzTpLaS9mh9I0PrTjY8JRY,742
|
|
168
|
-
hatchet_sdk/clients/rest/models/v1_task_summary.py,sha256=
|
|
168
|
+
hatchet_sdk/clients/rest/models/v1_task_summary.py,sha256=GbHZN4fCkysTgfZKjaaWS-8bAFwgX7l5u4hAKLhDlw4,8371
|
|
169
169
|
hatchet_sdk/clients/rest/models/v1_task_summary_list.py,sha256=0m-xf_lY9BwwbLky9i6fkTYUwh2K9mADHVZoRyF66o4,3510
|
|
170
170
|
hatchet_sdk/clients/rest/models/v1_trigger_workflow_run_request.py,sha256=tlveXz8hM8xnn36PhtPokyHljjrkPDSI3ZniSutdYT0,2850
|
|
171
|
-
hatchet_sdk/clients/rest/models/v1_workflow_run.py,sha256=
|
|
171
|
+
hatchet_sdk/clients/rest/models/v1_workflow_run.py,sha256=0kgHJ35XjXgNfaJfb1p0KLS1Jw6VAMeMYSdts8EvuYc,5895
|
|
172
172
|
hatchet_sdk/clients/rest/models/v1_workflow_run_details.py,sha256=vMnc50mT-tjfFlg2BJ58s2HhFvqvuGJaPGYAlTrLVI4,5040
|
|
173
173
|
hatchet_sdk/clients/rest/models/v1_workflow_run_display_name.py,sha256=0r6ASZvs6zUzW-YcJGbhkV_cs6N7jl-5l7f_LLgvBVY,2982
|
|
174
174
|
hatchet_sdk/clients/rest/models/v1_workflow_run_display_name_list.py,sha256=7jvuNbkjNGRKuZ2TdF1o_ghSLuQB2G-QE6agU-tObCE,3631
|
|
@@ -203,7 +203,7 @@ hatchet_sdk/clients/rest/models/workflow_run_shape_item_for_workflow_run_details
|
|
|
203
203
|
hatchet_sdk/clients/rest/models/workflow_run_status.py,sha256=X_jDDvq3GhjTNvdGy_NXUVNlUiIFrwbsQTw9kG_7YPs,805
|
|
204
204
|
hatchet_sdk/clients/rest/models/workflow_run_triggered_by.py,sha256=j6Ob3ICDL2wqZuFE2Bu1wuusH75HPwH0S53xpjQaRHY,3545
|
|
205
205
|
hatchet_sdk/clients/rest/models/workflow_runs_cancel_request.py,sha256=57o2jz6LN3PB2gi2SH_PBmyyhg5_94uNx2Shv_EpiSE,2537
|
|
206
|
-
hatchet_sdk/clients/rest/models/workflow_runs_metrics.py,sha256=
|
|
206
|
+
hatchet_sdk/clients/rest/models/workflow_runs_metrics.py,sha256=VokrmzO64TRSpPhLDIbsoBRfX9c7-9tKWvzY0wO7p-4,2745
|
|
207
207
|
hatchet_sdk/clients/rest/models/workflow_runs_metrics_counts.py,sha256=8pe_pI8UXe0YeMaOTRwrog3_Gq1z0LR2kLtq9hwS28g,3217
|
|
208
208
|
hatchet_sdk/clients/rest/models/workflow_tag.py,sha256=9aPXHeUYW6FV-6dB-I5Ex0P5g82YNePEuy8-VG5Ecrs,2494
|
|
209
209
|
hatchet_sdk/clients/rest/models/workflow_trigger_cron_ref.py,sha256=_6r0laWazB6r_eC1Sc7RZOYACWzhnItasKkMtkqu4Eg,2498
|
|
@@ -505,8 +505,8 @@ hatchet_sdk/worker/runner/run_loop_manager.py,sha256=P0iyKSfAb0IW5LDUnwzUOgCp0lP
|
|
|
505
505
|
hatchet_sdk/worker/runner/runner.py,sha256=mfEsR2EDcKPkEIylkz3FLsMC33OqTs4r5zpxCIjitoc,17446
|
|
506
506
|
hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=nHRPSiDBqzhObM7i2X7t03OupVFnE7kQBdR2Ckgg-2w,2709
|
|
507
507
|
hatchet_sdk/worker/worker.py,sha256=dcJEMeogodhLEi_5a0ldJLZ5EEN7DNcr8aiFLknTb18,14667
|
|
508
|
-
hatchet_sdk/workflow_run.py,sha256=
|
|
509
|
-
hatchet_sdk-1.3.
|
|
510
|
-
hatchet_sdk-1.3.
|
|
511
|
-
hatchet_sdk-1.3.
|
|
512
|
-
hatchet_sdk-1.3.
|
|
508
|
+
hatchet_sdk/workflow_run.py,sha256=ZwH0HLFGFVXz6jbiqSv4w0Om2XuR52Tzzw6LH4y65jQ,2765
|
|
509
|
+
hatchet_sdk-1.3.1.dist-info/METADATA,sha256=sS8Lrxkr6HvdjuhsP0vmjACIGE_pXxfGBH6uyzvgF1M,3571
|
|
510
|
+
hatchet_sdk-1.3.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
511
|
+
hatchet_sdk-1.3.1.dist-info/entry_points.txt,sha256=5mTp_AsCWK5raiVxP_MU9eBCgkRGl4OsN6chpHcvm7o,1235
|
|
512
|
+
hatchet_sdk-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|