Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_execution_sync_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Checks execution clients for their sync status.", Category: "execution", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "goodClients", Type: "array", Description: "Array of clients that meet sync criteria.", }, { Name: "failedClients", Type: "array", Description: "Array of clients that do not meet sync criteria.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type ClientInfo ¶
type Config ¶
type Config struct {
ClientPattern string `yaml:"clientPattern" json:"clientPattern" desc:"Regex pattern to select specific client endpoints for sync status checking."`
PollInterval helper.Duration `yaml:"pollInterval" json:"pollInterval" desc:"Interval between sync status polls (e.g., '5s', '1m')."`
ExpectSyncing bool `yaml:"expectSyncing" json:"expectSyncing" desc:"If true, expect clients to be syncing."`
ExpectMinPercent float64 `yaml:"expectMinPercent" json:"expectMinPercent" desc:"Minimum percentage of clients expected to match the sync condition."`
ExpectMaxPercent float64 `yaml:"expectMaxPercent" json:"expectMaxPercent" desc:"Maximum percentage of clients expected to match the sync condition."`
MinBlockHeight int `yaml:"minBlockHeight" json:"minBlockHeight" desc:"Minimum block height required before checking sync status."`
WaitForChainProgression bool `yaml:"waitForChainProgression" json:"waitForChainProgression" desc:"If true, wait for the chain to progress before checking."`
ContinueOnPass bool `` /* 137-byte string literal not displayed */
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.