Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Dec 10, 2024
1 parent aff477a commit 30f16d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
11 changes: 11 additions & 0 deletions iwf/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import inspect
import warnings
from typing import Any, Callable, Optional, Type, TypeVar, Union

from iwf.client_options import ClientOptions
Expand Down Expand Up @@ -94,10 +95,20 @@ def start_workflow(
wf_type, wf_id, starting_state_id, timeout_seconds, input, unreg_opts
)

@warnings.deprecated("use wait_for_workflow_completion instead")
def get_simple_workflow_result_with_wait(
self,
workflow_id: str,
type_hint: Optional[Type[T]] = None,
) -> Optional[T]:
return self._unregistered_client.get_simple_workflow_result_with_wait(
workflow_id, "", type_hint
)

def wait_for_workflow_completion(
self,
workflow_id: str,
type_hint: Optional[Type[T]] = None,
) -> Optional[T]:
"""
This will be waiting up to 5~60 seconds (configurable in HTTP client and capped by server) for workflow to
Expand Down
12 changes: 6 additions & 6 deletions iwf/workflow_state_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class WorkflowStateOptions:
TODO the type should be the type is Optional[type[WorkflowState]] but -- there is an issue with circular import...
"""
execute_failure_handling_state_when_retry_exhausted: Optional[type] = None
execute_api_data_attributes_loading_policy: Optional[
PersistenceLoadingPolicy
] = None
execute_api_search_attributes_loading_policy: Optional[
PersistenceLoadingPolicy
] = None
execute_api_data_attributes_loading_policy: Optional[PersistenceLoadingPolicy] = (
None
)
execute_api_search_attributes_loading_policy: Optional[PersistenceLoadingPolicy] = (
None
)


def _to_idl_state_options(
Expand Down

0 comments on commit 30f16d6

Please sign in to comment.