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

Error if history contains unexpected events after the StartedEventId #1662

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Error if history contains unexpected events after the StartedEventId

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner October 8, 2024 14:59
// In such cases, the SDK should return error indicating that the workflow task is stale since the result will not be used.
if size > 0 && lastEventID > 0 &&
h.Events[size-1].GetEventId() > lastEventID {
return nil, nil, fmt.Errorf("history contains events past expected last event ID (%v) "+
Copy link
Member

Choose a reason for hiding this comment

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

Can you confirm that an error iterating here is treated as task failure (eviction and all of that)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit c82a8ac into temporalio:master Oct 8, 2024
13 checks passed
ReyOrtiz pushed a commit to ReyOrtiz/temporal-sdk-go that referenced this pull request Dec 5, 2024
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