Documentation ¶
Index ¶
Constants ¶
View Source
const ( // workflow constants WatchdogWFID = "cadence-sys-watchdog" // signals CorruptWorkflowWatchdogChannelName = "CorruptWorkflowWatchdogChannelName" )
View Source
const (
SignalTimeout = 400 * time.Millisecond
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
ReportCorruptWorkflow(domainName string, workflowID string, runID string) error
}
Client is used to send request to processor workflow
type Config ¶
type Config struct {
CorruptWorkflowWatchdogPause dynamicconfig.BoolPropertyFn
}
Config contains all configs for ElasticSearch WatchDog
type CorruptWFRequest ¶
type CorruptWFRequest struct { Workflow types.WorkflowExecution DomainName string }
type WatchDog ¶
type WatchDog struct {
// contains filtered or unexported fields
}
WatchDog is the background sub-system to maintain the health of a Cadence cluster
func New ¶
func New( svcClient workflowserviceclient.Interface, frontendClient frontend.Client, clientBean client.Bean, logger log.Logger, metricsClient metrics.Client, tallyScope tally.Scope, resource resource.Resource, domainCache cache.DomainCache, config *Config, ) *WatchDog
New returns a new instance as daemon
func (*WatchDog) StartWorkflow ¶
Click to show internal directories.
Click to hide internal directories.