Skip to content

Commit

Permalink
Add last heartbeat details to timeout errors (cadence-workflow#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt authored May 31, 2019
1 parent 4f5914a commit 5cc355b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/history/timerQueueActiveProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ Update_History_Loop:
case workflow.TimeoutTypeScheduleToClose:
{
t.metricsClient.IncCounter(metrics.TimerActiveTaskActivityTimeoutScope, metrics.ScheduleToCloseTimeoutCounter)
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, nil) == nil {
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, ai.Details) == nil {
return errFailedToAddTimeoutEvent
}
updateHistory = true
Expand All @@ -423,7 +423,7 @@ Update_History_Loop:
{
t.metricsClient.IncCounter(metrics.TimerActiveTaskActivityTimeoutScope, metrics.StartToCloseTimeoutCounter)
if ai.StartedID != common.EmptyEventID {
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, nil) == nil {
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, ai.Details) == nil {
return errFailedToAddTimeoutEvent
}
updateHistory = true
Expand All @@ -443,7 +443,7 @@ Update_History_Loop:
{
t.metricsClient.IncCounter(metrics.TimerActiveTaskActivityTimeoutScope, metrics.ScheduleToStartTimeoutCounter)
if ai.StartedID == common.EmptyEventID {
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, nil) == nil {
if msBuilder.AddActivityTaskTimedOutEvent(ai.ScheduleID, ai.StartedID, timeoutType, ai.Details) == nil {
return errFailedToAddTimeoutEvent
}
updateHistory = true
Expand Down

0 comments on commit 5cc355b

Please sign in to comment.