Documentation ¶
Index ¶
- Constants
- Variables
- func NewWorkerManager(params initParams) *workerManager
- func ParamsExpandProvider(params *resource.BootstrapParams) common.RPCFactory
- func PersistenceMaxQpsProvider(serviceConfig *Config) persistenceClient.PersistenceMaxQps
- func ServiceLifetimeHooks(lc fx.Lifecycle, svcStoppedCh chan struct{}, svc *Service)
- func ThrottledLoggerRpsFnProvider(serviceConfig *Config) resource.ThrottledLoggerRpsFn
- type Config
- type Service
Constants ¶
View Source
const DefaultWorkerTaskQueue = "default-worker-tq"
Variables ¶
View Source
var Module = fx.Options( replication.Module, addsearchattributes.Module, resource.Module, fx.Provide(ParamsExpandProvider), fx.Provide(dynamicconfig.NewCollection), fx.Provide(ThrottledLoggerRpsFnProvider), fx.Provide(NewConfig), fx.Provide(PersistenceMaxQpsProvider), fx.Provide(NewService), fx.Provide(NewWorkerManager), fx.Invoke(ServiceLifetimeHooks), )
Functions ¶
func NewWorkerManager ¶ added in v1.14.0
func NewWorkerManager(params initParams) *workerManager
func ParamsExpandProvider ¶ added in v1.13.0
func ParamsExpandProvider(params *resource.BootstrapParams) common.RPCFactory
func PersistenceMaxQpsProvider ¶ added in v1.13.0
func PersistenceMaxQpsProvider( serviceConfig *Config, ) persistenceClient.PersistenceMaxQps
func ServiceLifetimeHooks ¶ added in v1.13.0
func ThrottledLoggerRpsFnProvider ¶ added in v1.13.0
func ThrottledLoggerRpsFnProvider(serviceConfig *Config) resource.ThrottledLoggerRpsFn
Types ¶
type Config ¶
type Config struct { ArchiverConfig *archiver.Config ScannerCfg *scanner.Config ParentCloseCfg *parentclosepolicy.Config BatcherCfg *batcher.Config ThrottledLogRPS dynamicconfig.IntPropertyFn PersistenceMaxQPS dynamicconfig.IntPropertyFn PersistenceGlobalMaxQPS dynamicconfig.IntPropertyFn EnableBatcher dynamicconfig.BoolPropertyFn EnableParentClosePolicyWorker dynamicconfig.BoolPropertyFn }
Config contains all the service config for worker
func NewConfig ¶
func NewConfig(logger log.Logger, dcClient dynamicconfig.Client, params *resource.BootstrapParams) *Config
NewConfig builds the new Config for worker service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the temporal-worker service. This service hosts all background processing needed for temporal cluster: Replicator: Handles applying replication tasks generated by remote clusters. Archiver: Handles archival of workflow histories.
func NewService ¶
func NewService( logger resource.SnTaggedLogger, serviceConfig *Config, sdkClientFactory sdk.ClientFactory, sdkSystemClient sdkclient.Client, esClient esclient.Client, archivalMetadata carchiver.ArchivalMetadata, clusterMetadata cluster.Metadata, metricsClient metrics.Client, clientBean client.Bean, clusterMetadataManager persistence.ClusterMetadataManager, namespaceRegistry namespace.Registry, executionManager persistence.ExecutionManager, archiverProvider provider.ArchiverProvider, persistenceBean persistenceClient.Bean, membershipMonitor membership.Monitor, namespaceReplicationQueue persistence.NamespaceReplicationQueue, metricsScope tally.Scope, metadataManager persistence.MetadataManager, taskManager persistence.TaskManager, historyClient historyservice.HistoryServiceClient, manager *workerManager, ) (*Service, error)
Directories ¶
Path | Synopsis |
---|---|
Package archiver is a generated GoMock package.
|
Package archiver is a generated GoMock package. |
Package parentclosepolicy is a generated GoMock package.
|
Package parentclosepolicy is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.