hatchet-sdk 1.16.3__py3-none-any.whl → 1.16.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/config.py +1 -0
- hatchet_sdk/connection.py +6 -1
- hatchet_sdk/runnables/types.py +2 -2
- {hatchet_sdk-1.16.3.dist-info → hatchet_sdk-1.16.4.dist-info}/METADATA +1 -1
- {hatchet_sdk-1.16.3.dist-info → hatchet_sdk-1.16.4.dist-info}/RECORD +7 -7
- {hatchet_sdk-1.16.3.dist-info → hatchet_sdk-1.16.4.dist-info}/WHEEL +0 -0
- {hatchet_sdk-1.16.3.dist-info → hatchet_sdk-1.16.4.dist-info}/entry_points.txt +0 -0
hatchet_sdk/config.py
CHANGED
|
@@ -84,6 +84,7 @@ class ClientConfig(BaseSettings):
|
|
|
84
84
|
|
|
85
85
|
terminate_worker_after_num_tasks: int | None = None
|
|
86
86
|
disable_log_capture: bool = False
|
|
87
|
+
grpc_enable_fork_support: bool = False
|
|
87
88
|
|
|
88
89
|
@model_validator(mode="after")
|
|
89
90
|
def validate_token_and_tenant(self) -> "ClientConfig":
|
hatchet_sdk/connection.py
CHANGED
|
@@ -60,7 +60,12 @@ def new_conn(config: ClientConfig, aio: bool) -> grpc.Channel | grpc.aio.Channel
|
|
|
60
60
|
|
|
61
61
|
# Set environment variable to disable fork support. Reference: https://github.com/grpc/grpc/issues/28557
|
|
62
62
|
# When steps execute via os.fork, we see `TSI_DATA_CORRUPTED` errors.
|
|
63
|
-
|
|
63
|
+
# needs to be the string "True" or "False"
|
|
64
|
+
os.environ["GRPC_ENABLE_FORK_SUPPORT"] = str(config.grpc_enable_fork_support)
|
|
65
|
+
|
|
66
|
+
if config.grpc_enable_fork_support:
|
|
67
|
+
# See discussion: https://github.com/hatchet-dev/hatchet/pull/2057#discussion_r2243233357
|
|
68
|
+
os.environ["GRPC_POLL_STRATEGY"] = "poll"
|
|
64
69
|
|
|
65
70
|
if config.tls_config.strategy == "none":
|
|
66
71
|
conn = start.insecure_channel(
|
hatchet_sdk/runnables/types.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import asyncio
|
|
2
2
|
import json
|
|
3
|
-
from collections.abc import Callable
|
|
3
|
+
from collections.abc import Callable, Mapping
|
|
4
4
|
from enum import Enum
|
|
5
5
|
from typing import Any, ParamSpec, TypeGuard, TypeVar
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ from hatchet_sdk.contracts.v1.workflows_pb2 import DefaultFilter as DefaultFilte
|
|
|
12
12
|
from hatchet_sdk.utils.timedelta_to_expression import Duration
|
|
13
13
|
from hatchet_sdk.utils.typing import AwaitableLike, JSONSerializableMapping
|
|
14
14
|
|
|
15
|
-
ValidTaskReturnType = BaseModel |
|
|
15
|
+
ValidTaskReturnType = BaseModel | Mapping[str, Any] | None
|
|
16
16
|
|
|
17
17
|
R = TypeVar("R", bound=ValidTaskReturnType)
|
|
18
18
|
P = ParamSpec("P")
|
|
@@ -239,8 +239,8 @@ hatchet_sdk/clients/rest/rest.py,sha256=zZHTzgl-NBdcK6XhG23m_s9RKRONGPPItzGe407s
|
|
|
239
239
|
hatchet_sdk/clients/rest/tenacity_utils.py,sha256=WeNt_1ah2-NKB9qTI3JnTjItpSviBV95U0cPM4kB5as,1211
|
|
240
240
|
hatchet_sdk/clients/v1/api_client.py,sha256=vUaQr7Xi71a2kFHkZy-pB3tCg3-t0ROlqbPUQA6skIA,2013
|
|
241
241
|
hatchet_sdk/conditions.py,sha256=CnhpkXgVXM3wc0kAX8KZQA6tp8NFAbdzAN2xFbw7Hb0,4522
|
|
242
|
-
hatchet_sdk/config.py,sha256=
|
|
243
|
-
hatchet_sdk/connection.py,sha256=
|
|
242
|
+
hatchet_sdk/config.py,sha256=9yXDCBfVW5AHosiSRWiEScSFSsm7Lx7wi0urNLC11Ck,5266
|
|
243
|
+
hatchet_sdk/connection.py,sha256=XCBY9-UxaN3blakgZ59AhDpjb1ilLOOlmNNM6QaDtMM,2961
|
|
244
244
|
hatchet_sdk/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
245
245
|
hatchet_sdk/context/context.py,sha256=NZzFLu1hOZqsZNGSF8T_LrZOMfFDX-2DIyNMtZXs2ck,15359
|
|
246
246
|
hatchet_sdk/context/worker_context.py,sha256=3lGkOYmDixeuSmqxXbsYav2gErcjP8cDa2m0t0iomjI,884
|
|
@@ -284,7 +284,7 @@ hatchet_sdk/rate_limit.py,sha256=TwbCuggiZaWpYuo4mjVLlE-z1OfQ2mRBiVvCSaG3lv4,391
|
|
|
284
284
|
hatchet_sdk/runnables/action.py,sha256=zrVHpyzIQ9XZgWwY69b_6uhZd53An4trRoLd9b3os5E,4384
|
|
285
285
|
hatchet_sdk/runnables/contextvars.py,sha256=jHrrewUlFPAT9f2u3VCsuSlDBtBoagEUtUzJOSmm4yk,1118
|
|
286
286
|
hatchet_sdk/runnables/task.py,sha256=-5AeToJqIbpgGeyrol5VJaFGND4l_UY8k9VIhrUBXaw,12796
|
|
287
|
-
hatchet_sdk/runnables/types.py,sha256=
|
|
287
|
+
hatchet_sdk/runnables/types.py,sha256=M23xSMTBPl12CXCCXZ0wbnqZ_sePB6CJKtOdipiNDlg,4362
|
|
288
288
|
hatchet_sdk/runnables/workflow.py,sha256=_F5XIeokfQxMgrFtVjdM3ArtCwfKj3u51dinA7ouyWI,57513
|
|
289
289
|
hatchet_sdk/token.py,sha256=KjIiInwG5Kqd_FO4BSW1x_5Uc7PFbnzIVJqr50-ZldE,779
|
|
290
290
|
hatchet_sdk/utils/aio.py,sha256=cu1rD_UZkShtfzi7iXMYwBBaCRdxJQTdUC0_mf8nU2E,499
|
|
@@ -523,7 +523,7 @@ hatchet_sdk/worker/runner/runner.py,sha256=L5J_dbwpz2P0rbDzpxW1udByQJHii28KEvzx-
|
|
|
523
523
|
hatchet_sdk/worker/runner/utils/capture_logs.py,sha256=FBEcPTi6cxFsGPER51k-xeMUzVJhLIAq7NyKTHCM5-E,4386
|
|
524
524
|
hatchet_sdk/worker/worker.py,sha256=9EiESMMcS7voa4cAnmnHMx4rC-pqaTmP74bcTbFPqfQ,16435
|
|
525
525
|
hatchet_sdk/workflow_run.py,sha256=KcylcqRwKADtnzOTjoiVr1vdr7qTZFtDeD5aRS6A4Y8,2823
|
|
526
|
-
hatchet_sdk-1.16.
|
|
527
|
-
hatchet_sdk-1.16.
|
|
528
|
-
hatchet_sdk-1.16.
|
|
529
|
-
hatchet_sdk-1.16.
|
|
526
|
+
hatchet_sdk-1.16.4.dist-info/METADATA,sha256=COvbSNkoetUrfskndrS4s3PJ8MsNs4-36OjEuUeOOGc,3636
|
|
527
|
+
hatchet_sdk-1.16.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
528
|
+
hatchet_sdk-1.16.4.dist-info/entry_points.txt,sha256=Un_76pcLse-ZGBlwebhQpnTPyQrripeHW8J7qmEpGOk,1400
|
|
529
|
+
hatchet_sdk-1.16.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|