We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58d840 commit 65cff5fCopy full SHA for 65cff5f
service/history/api/isactivitytaskvalid/api.go
@@ -57,13 +57,8 @@ func isActivityTaskValid(
57
}
58
59
ai, ok := mutableState.GetActivityInfo(scheduledEventID)
60
- if !ok || ai.StartedEventId != common.EmptyEventID {
61
- return false, nil
+ if ok && ai.StartedEventId == common.EmptyEventID {
+ return true, nil
62
63
-
64
- if ai.GetStamp() > 0 && stamp > 0 && ai.GetStamp() != stamp {
65
66
- }
67
68
- return true, nil
+ return false, nil
69
0 commit comments