Skip to content

Commit 83e5d90

Browse files
committed
Review change
1 parent 47585ec commit 83e5d90

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

temporalio/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,11 @@ def list_workflows(
792792
self,
793793
query: Optional[str] = None,
794794
*,
795+
limit: Optional[int] = None,
795796
page_size: int = 1000,
796797
next_page_token: Optional[bytes] = None,
797798
rpc_metadata: Mapping[str, str] = {},
798799
rpc_timeout: Optional[timedelta] = None,
799-
limit: Optional[int] = None,
800800
) -> WorkflowExecutionAsyncIterator:
801801
"""List workflows.
802802
@@ -807,15 +807,17 @@ def list_workflows(
807807
query: A Temporal visibility list filter. See Temporal documentation
808808
concerning visibility list filters including behavior when left
809809
unset.
810+
limit: Maximum number of workflows to return. If unset, all
811+
workflows are returned. Only applies if using the
812+
returned :py:class:`WorkflowExecutionAsyncIterator`.
813+
as an async iterator.
810814
page_size: Maximum number of results for each page.
811815
next_page_token: A previously obtained next page token if doing
812816
pagination. Usually not needed as the iterator automatically
813817
starts from the beginning.
814818
rpc_metadata: Headers used on each RPC call. Keys here override
815819
client-level RPC metadata keys.
816820
rpc_timeout: Optional RPC deadline to set for each RPC call.
817-
limit: Maximum number of workflows to return. If unset, all
818-
workflows are returned.
819821
820822
Returns:
821823
An async iterator that can be used with ``async for``.

0 commit comments

Comments
 (0)