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

Document ErrResultPending's behavioral gap explicitly #1229

Merged
merged 3 commits into from
Mar 16, 2023

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Mar 16, 2023

Resolving this "two kinds of finished-timeouts / heartbeat-timeouts, but only one config" issue with ErrResultPending will need some new semantics on the server side... but at least there's a workaround until then.

The general concept of a "pending activity" does seem worth supporting, particularly because it can respond with an "already completed" error when a second "complete" request is received. It just has unfortunate quirks at the moment.

Groxx added 2 commits March 16, 2023 15:39
Resolving this "two kinds of finished-timeout / heartbeat-timeout" issue with ErrResultPending will need some new semantics on the server side... but at least there's a workaround until then.
The general concept of a "pending activity" does seem worth supporting, particularly because it can respond with an "already completed" error when a second "complete" request is received.  It just has unfortunate quirks at the moment.
@Groxx Groxx merged commit 8e6d905 into cadence-workflow:master Mar 16, 2023
@Groxx Groxx deleted the pending branch March 16, 2023 21:17
Groxx added a commit to Groxx/cadence-java-client that referenced this pull request Mar 16, 2023
Java counterpart to cadence-workflow/cadence-go-client#1229

Resolving this "two kinds of finished-timeouts / heartbeat-timeouts, but only one config" issue with Activity.doNotCompleteOnReturn will need some new semantics on the server side... but at least there's a workaround until then.

The general concept of a "pending activity" does seem worth supporting, particularly because it can respond with an "already completed" error when a second "complete" request is received. It just has unfortunate quirks at the moment.
mindaugasbarcauskas pushed a commit to cadence-workflow/cadence-java-client that referenced this pull request Mar 28, 2023
#776)

* Fix gradle for M1 OSX machines

* Document doNotCompleteOnReturn's behavioral gap explicitly

Java counterpart to cadence-workflow/cadence-go-client#1229

Resolving this "two kinds of finished-timeouts / heartbeat-timeouts, but only one config" issue with Activity.doNotCompleteOnReturn will need some new semantics on the server side... but at least there's a workaround until then.

The general concept of a "pending activity" does seem worth supporting, particularly because it can respond with an "already completed" error when a second "complete" request is received. It just has unfortunate quirks at the moment.

* sometimes
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.

2 participants