From 8cb49d46ffb6c3ac6858e019978dac1ab350bfa4 Mon Sep 17 00:00:00 2001 From: hatchet-temporary Date: Thu, 28 Nov 2024 09:59:27 -0500 Subject: [PATCH] fix: try with `.Value` --- hatchet_sdk/workflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hatchet_sdk/workflow.py b/hatchet_sdk/workflow.py index e1a73b9c..e861d53b 100644 --- a/hatchet_sdk/workflow.py +++ b/hatchet_sdk/workflow.py @@ -1,5 +1,5 @@ import functools -from typing import Any, Callable, Union, Protocol, Type, TypeVar, cast +from typing import Any, Callable, Protocol, Type, TypeVar, Union, cast from hatchet_sdk import ConcurrencyLimitStrategy from hatchet_sdk.contracts.workflows_pb2 import ( # type: ignore[attr-defined] @@ -69,7 +69,7 @@ def get_create_opts(self, namespace: str) -> Any: ... version: str timeout: str schedule_timeout: str - sticky: Union[StickyStrategy, None] + sticky: Union[StickyStrategy.Value, None] default_priority: int | None concurrency_expression: ConcurrencyExpression | None