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

Fix task state change for state based replication #6816

Closed
wants to merge 4 commits into from

Conversation

xwduan
Copy link
Contributor

@xwduan xwduan commented Nov 14, 2024

What changed?

Add new api for updating timer task status

Why?

We need to distinguish the user data update and timer task status update because we don't need to update state transition when the change is task status update change.

How did you test it?

unit test

Potential risks

n/a

Documentation

n/a

Is hotfix candidate?

no

@xwduan xwduan marked this pull request as ready for review November 15, 2024 00:37
@xwduan xwduan requested a review from a team as a code owner November 15, 2024 00:37
ai.TimerTaskStatus = status
ms.updateActivityInfos[ai.ScheduledEventId] = ai
return nil
}

// UpdateActivityWithTimerHeartbeat updates an activity
func (ms *MutableStateImpl) UpdateActivityWithTimerHeartbeat(
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
func (ms *MutableStateImpl) UpdateActivityWithTimerHeartbeat(
func (ms *MutableStateImpl) UpdateActivityTaskStatusWithTimerHeartbeat(

also take activityScheduledID, timerTaskStatus and timerTimeoutVisibility as input.

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