Skip to content

Commit

Permalink
Populate activityDispatchInfo with timestamps needed for local activi…
Browse files Browse the repository at this point in the history
…ty dispatch by worker (cadence-workflow#3669)
  • Loading branch information
mkolodezny authored Oct 20, 2020
1 parent 6890e42 commit e533892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/history/decisionTaskHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func (handler *decisionTaskHandlerImpl) handleDecisionScheduleActivity(
if _, err1 := handler.mutableState.AddActivityTaskStartedEvent(ai, event.GetEventId(), uuid.New(), handler.identity); err1 != nil {
return nil, err1
}
activityDispatchInfo.ScheduledTimestamp = common.Int64Ptr(ai.ScheduledTime.UnixNano())
activityDispatchInfo.ScheduledTimestampOfThisAttempt = common.Int64Ptr(ai.ScheduledTime.UnixNano())
activityDispatchInfo.StartedTimestamp = common.Int64Ptr(ai.StartedTime.UnixNano())
return &decisionResult{activityDispatchInfo: activityDispatchInfo}, nil
}
return nil, nil
Expand Down

0 comments on commit e533892

Please sign in to comment.