Skip to content

Commit

Permalink
Remove unused watchdog signal (cadence-workflow#5029)
Browse files Browse the repository at this point in the history
  • Loading branch information
demirkayaender authored Nov 21, 2022
1 parent 1a50671 commit 4b06e3f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions service/history/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"github.com/uber/cadence/common/types"
"github.com/uber/cadence/service/history/execution"
"github.com/uber/cadence/service/history/shard"
"github.com/uber/cadence/service/worker/watchdog"
)

const (
Expand Down Expand Up @@ -224,23 +223,6 @@ func (t *taskImpl) Execute() error {
return t.taskExecutor.Execute(t, t.shouldProcessTask)
}

func (t *taskImpl) reportCorruptWorkflowToWatchDog() error {
domainID := t.GetDomainID()
wid := t.GetWorkflowID()
rid := t.GetRunID()

domainName, err := t.shard.GetDomainCache().GetDomainName(domainID)
if err != nil {
return err
}

watchDogClient := watchdog.NewClient(
t.shard.GetLogger(),
t.shard.GetService().GetSDKClient(),
)
return watchDogClient.ReportCorruptWorkflow(domainName, wid, rid)
}

func (t *taskImpl) HandleErr(
err error,
) (retErr error) {
Expand All @@ -259,8 +241,6 @@ func (t *taskImpl) HandleErr(
tag.OperationCritical,
tag.TaskType(t.GetTaskType()),
)

t.reportCorruptWorkflowToWatchDog()
}
}
}()
Expand Down

0 comments on commit 4b06e3f

Please sign in to comment.