Skip to content

Commit 65cff5f

Browse files
committed
revert the stamp > 0 check
1 parent f58d840 commit 65cff5f

File tree

1 file changed

+3
-8
lines changed
  • service/history/api/isactivitytaskvalid

1 file changed

+3
-8
lines changed

service/history/api/isactivitytaskvalid/api.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,8 @@ func isActivityTaskValid(
5757
}
5858

5959
ai, ok := mutableState.GetActivityInfo(scheduledEventID)
60-
if !ok || ai.StartedEventId != common.EmptyEventID {
61-
return false, nil
60+
if ok && ai.StartedEventId == common.EmptyEventID {
61+
return true, nil
6262
}
63-
64-
if ai.GetStamp() > 0 && stamp > 0 && ai.GetStamp() != stamp {
65-
return false, nil
66-
}
67-
68-
return true, nil
63+
return false, nil
6964
}

0 commit comments

Comments
 (0)