Skip to content

Conversation

@dandavison
Copy link
Contributor

@dandavison dandavison commented Nov 26, 2025

Two APIs:

  1. Return Info, optionally waiting for next state change before doing so
    In addition to Info it returns a long-poll token. Optionally accepts a long-poll token, meaning "wait for next state change and then return latest info". Optionally includes outcome and input in response.
  2. Long-poll for outcome

Proposed namess (1) PollActivityExecution and (2) PollActivityExecutionOutcome.

We should only go with this if we think we like PollFoo and PollFooOutcome for other CHASM archetypes with the same semantics.

I didn't name it DescribeActivityExecution because there is no precedent for an API named Describe* that long-polls.

@dandavison dandavison requested review from a team as code owners November 26, 2025 21:42
@dandavison dandavison force-pushed the standalone-activity-poll-apis branch from 73b724c to 8f4afd4 Compare November 26, 2025 21:44
@dandavison dandavison requested a review from bergundy November 26, 2025 21:56
@dandavison dandavison merged commit 43a7726 into standalone-activity Nov 26, 2025
2 of 3 checks passed
@dandavison dandavison deleted the standalone-activity-poll-apis branch November 26, 2025 23:07
@dandavison
Copy link
Contributor Author

Note that the branch this PR merged into is not a meaningful branch. These changes need to be added to #640 (bergundy:standalone-activity).

bergundy pushed a commit that referenced this pull request Nov 27, 2025
Two APIs:

1. **Return Info, optionally waiting for next state change before doing
so**
In addition to Info it returns a long-poll token. Optionally accepts a
long-poll token, meaning "wait for next state change and then return
latest info". Optionally includes outcome and input in response.
1. **Long-poll for outcome**
bergundy pushed a commit to bergundy/temporal-api that referenced this pull request Nov 27, 2025
Two APIs:

1. **Return Info, optionally waiting for next state change before doing
so**
In addition to Info it returns a long-poll token. Optionally accepts a
long-poll token, meaning "wait for next state change and then return
latest info". Optionally includes outcome and input in response.
1. **Long-poll for outcome**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants