Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak .result() doc #706

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions temporalio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,8 +1231,9 @@ async def result(

Args:
follow_runs: If true (default), workflow runs will be continually
fetched, until the most recent one is found. If false, the first
result is used.
fetched, until the most recent one is found. If false, return
the result from the first run targeted by the request if that run
ends in a result, otherwise raise an exception.
Comment on lines +1234 to +1236
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fetched, until the most recent one is found. If false, return
the result from the first run targeted by the request if that run
ends in a result, otherwise raise an exception.
fetched, until the most recent one is found. If false, return
the result or raise an exception for the single run targeted
by the request without traversing into other runs.

Not necessarily better, just "otherwise raise an exception" isn't really clear that this is because in other cases an exception may causes run traversal. But don't have to change.

rpc_metadata: Headers used on the RPC call. Keys here override
client-level RPC metadata keys.
rpc_timeout: Optional RPC deadline to set for each RPC call. Note,
Expand Down
Loading