Documentation
¶
Index ¶
- Constants
- Variables
- func IsConsensusClusterFailure(err error) bool
- func IsConsensusValidationFailure(err error) bool
- func IsContinueAsNewError(err error) bool
- func IsErrSessionFailed(sessionCtx workflow.Context, err error) bool
- func IsNodeProviderFailed(err error) bool
- func IsScheduleToStartTimeout(err error) bool
- type Backfiller
- type BackfillerParams
- type BackfillerRequest
- type Benchmarker
- type BenchmarkerParams
- type BenchmarkerRequest
- type CrossValidator
- type CrossValidatorParams
- type CrossValidatorRequest
- type EventBackfiller
- type EventBackfillerParams
- type EventBackfillerRequest
- type InstrumentedRequest
- type Manager
- type ManagerParams
- type MetricOption
- type Monitor
- type MonitorParams
- type MonitorRequest
- type Poller
- type PollerParams
- type PollerRequest
- type PollerState
- type Replicator
- type ReplicatorParams
- type ReplicatorRequest
- type Streamer
- type StreamerParams
- type StreamerRequest
- type WorkflowIdentity
Constants ¶
View Source
const (
RetryableErrorLimit = 10
)
Variables ¶
View Source
var Module = fx.Options( activity.Module, fx.Provide(NewManager), fx.Provide(NewBackfiller), fx.Provide(NewPoller), fx.Provide(NewBenchmarker), fx.Provide(NewMonitor), fx.Provide(NewStreamer), fx.Provide(NewCrossValidator), fx.Provide(NewEventBackfiller), fx.Provide(NewReplicator), )
Functions ¶
func IsContinueAsNewError ¶
func IsNodeProviderFailed ¶
Types ¶
type Backfiller ¶
type Backfiller struct {
// contains filtered or unexported fields
}
func NewBackfiller ¶
func NewBackfiller(params BackfillerParams) *Backfiller
func (*Backfiller) Execute ¶
func (w *Backfiller) Execute(ctx context.Context, request *BackfillerRequest) (client.WorkflowRun, error)
type BackfillerParams ¶
type BackfillerRequest ¶
type BackfillerRequest struct {
Tag uint32
StartHeight uint64
EndHeight uint64 `validate:"gt=0,gtfield=StartHeight"`
UpdateWatermark bool
NumConcurrentExtractors int // Optional. If not specified, it is read from the workflow config.
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
MiniBatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
MaxReprocessedPerBatch uint64 // Optional. If not specified, it is read from the workflow config.
RehydrateFromTag *uint32 // Optional. If not specified, rehydration is disabled.
UpgradeFromTag *uint32 // Optional. If not specified, upgrade is disabled.
DataCompression string // Optional. If not specified, it is read from the workflow config.
Failover bool // Optional. If not specified, it is set as false.
}
func (*BackfillerRequest) GetTags ¶
func (r *BackfillerRequest) GetTags() map[string]string
type Benchmarker ¶
type Benchmarker struct {
// contains filtered or unexported fields
}
func NewBenchmarker ¶
func NewBenchmarker(params BenchmarkerParams) *Benchmarker
func (*Benchmarker) Execute ¶
func (w *Benchmarker) Execute(ctx context.Context, request *BenchmarkerRequest) (client.WorkflowRun, error)
type BenchmarkerParams ¶
type BenchmarkerRequest ¶
type CrossValidator ¶
type CrossValidator struct {
// contains filtered or unexported fields
}
func NewCrossValidator ¶
func NewCrossValidator(params CrossValidatorParams) *CrossValidator
func (*CrossValidator) Execute ¶
func (w *CrossValidator) Execute(ctx context.Context, request *CrossValidatorRequest) (client.WorkflowRun, error)
type CrossValidatorParams ¶
type CrossValidatorRequest ¶
type CrossValidatorRequest struct {
StartHeight uint64
Tag uint32
ValidationHeightPadding uint64 // Optional. If not specified, it is read from the workflow config.
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
Parallelism int // Optional. If not specified, it is read from the workflow config.
BackoffInterval string // Optional. If not specified, it is read from the workflow config.
}
func (*CrossValidatorRequest) GetTags ¶
func (r *CrossValidatorRequest) GetTags() map[string]string
type EventBackfiller ¶
type EventBackfiller struct {
// contains filtered or unexported fields
}
func NewEventBackfiller ¶
func NewEventBackfiller(params EventBackfillerParams) *EventBackfiller
func (*EventBackfiller) Execute ¶
func (w *EventBackfiller) Execute(ctx context.Context, request *EventBackfillerRequest) (client.WorkflowRun, error)
type EventBackfillerParams ¶
type EventBackfillerParams struct {
fx.In
fxparams.Params
Runtime cadence.Runtime
EventReader *activity.EventReader
EventReconciler *activity.EventReconciler
EventLoader *activity.EventLoader
}
type EventBackfillerRequest ¶
type EventBackfillerRequest struct {
Tag uint32
EventTag uint32
UpgradeFromEventTag uint32
StartSequence uint64 `validate:"gt=0"`
EndSequence uint64 `validate:"gt=0,gtfield=StartSequence"`
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
}
func (EventBackfillerRequest) GetTags ¶
func (w EventBackfillerRequest) GetTags() map[string]string
type InstrumentedRequest ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(params ManagerParams) *Manager
type ManagerParams ¶
type ManagerParams struct {
fx.In
fxparams.Params
Lifecycle fx.Lifecycle
Runtime cadence.Runtime
Backfiller *Backfiller
Poller *Poller
Benchmarker *Benchmarker
Monitor *Monitor
Streamer *Streamer
CrossValidator *CrossValidator
EventBackfiller *EventBackfiller
Replicator *Replicator
}
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor(params MonitorParams) *Monitor
func (*Monitor) Execute ¶
func (w *Monitor) Execute(ctx context.Context, request *MonitorRequest) (client.WorkflowRun, error)
type MonitorParams ¶
type MonitorRequest ¶
type MonitorRequest struct {
StartHeight uint64
Tag uint32
StartEventId int64 // Optional. If not specified or less than metastorage.EventIdStartValue, it will be set as metastorage.EventIdStartValue.
ValidationHeightPadding uint64 // Optional. If not specified, it is read from the workflow config.
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
EventBatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
BackoffInterval string // Optional. If not specified, it is read from the workflow config.
Parallelism int // Optional. If not specified, it is read from the workflow config.
EventTag uint32 // Optional.
Failover bool // Optional. If not specified, it is set as false.
}
func (*MonitorRequest) GetTags ¶
func (r *MonitorRequest) GetTags() map[string]string
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func NewPoller ¶
func NewPoller(params PollerParams) *Poller
func (*Poller) Execute ¶
func (w *Poller) Execute(ctx context.Context, request *PollerRequest) (client.WorkflowRun, error)
type PollerParams ¶
type PollerRequest ¶
type PollerRequest struct {
Tag uint32
MinStartHeight uint64
MaxBlocksToSync uint64
BackoffInterval string
Parallelism int
CheckpointSize uint64
DataCompression string
RetryableErrorCount int
Failover bool
ConsensusFailover bool
FastSync bool
NumBlocksToSkip uint64
TransactionsWriteParallelism int
ConsensusValidation *bool
ConsensusValidationMuted *bool
State *PollerState
}
func (*PollerRequest) GetTags ¶
func (r *PollerRequest) GetTags() map[string]string
type PollerState ¶
type Replicator ¶
type Replicator struct {
// contains filtered or unexported fields
}
func NewReplicator ¶
func NewReplicator(params ReplicatorParams) *Replicator
func (*Replicator) Execute ¶
func (w *Replicator) Execute(ctx context.Context, request *ReplicatorRequest) (client.WorkflowRun, error)
type ReplicatorParams ¶
type ReplicatorParams struct {
fx.In
fxparams.Params
Runtime cadence.Runtime
Replicator *activity.Replicator
UpdateWatermark *activity.UpdateWatermark
}
type ReplicatorRequest ¶
type ReplicatorRequest struct {
Tag uint32
StartHeight uint64
EndHeight uint64 `validate:"gt=0,gtfield=StartHeight"`
UpdateWatermark bool
DataCompression string // Optional. If not specified, it is read from the workflow config.
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
MiniBatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
Parallelism int // Optional. If not specified, it is read from the workflow config.
}
func (*ReplicatorRequest) GetTags ¶
func (r *ReplicatorRequest) GetTags() map[string]string
GetTags implements InstrumentedRequest.
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
func NewStreamer ¶
func NewStreamer(params StreamerParams) *Streamer
func (*Streamer) Execute ¶
func (w *Streamer) Execute(ctx context.Context, request *StreamerRequest) (client.WorkflowRun, error)
type StreamerParams ¶
type StreamerRequest ¶
type StreamerRequest struct {
BatchSize uint64 // Optional. If not specified, it is read from the workflow config.
CheckpointSize uint64 // Optional. If not specified, it is read from the workflow config.
BackoffInterval string // Optional. If not specified, it is read from the workflow config.
MaxAllowedReorgHeight uint64 // Optional. If not specified, it is read from the workflow config.
EventTag uint32 // Optional.
Tag uint32 // Optional.
}
func (*StreamerRequest) GetTags ¶
func (r *StreamerRequest) GetTags() map[string]string
type WorkflowIdentity ¶
type WorkflowIdentity int
const ( UnknownIdentity WorkflowIdentity = iota BackfillerIdentity BenchmarkerIdentity MonitorIdentity PollerIdentity StreamerIdentity CrossValidatorIdentity EventBackfillerIdentity ReplicatorIdentity )
func GetWorkflowIdentify ¶
func GetWorkflowIdentify(name string) WorkflowIdentity
func (WorkflowIdentity) String ¶
func (w WorkflowIdentity) String() (string, error)
func (WorkflowIdentity) UnmarshalJsonStringToRequest ¶
func (w WorkflowIdentity) UnmarshalJsonStringToRequest(str string) (any, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.