Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused watchdog signal #5029

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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