Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) CollectMQBrokers(name endure.Named, c jobs.Constructor)
- func (p *Plugin) Collects() []any
- func (p *Plugin) Declare(pipeline *pipeline.Pipeline) error
- func (p *Plugin) Destroy(pp string) error
- func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger, server server.Server) error
- func (p *Plugin) JobsState(ctx context.Context) ([]*jobs.State, error)
- func (p *Plugin) List() []string
- func (p *Plugin) MetricsCollector() []prometheus.Collector
- func (p *Plugin) Name() string
- func (p *Plugin) Pause(pp string)
- func (p *Plugin) Push(j *jobs.Job) error
- func (p *Plugin) PushBatch(j []*jobs.Job) error
- func (p *Plugin) RPC() any
- func (p *Plugin) Reset() error
- func (p *Plugin) Resume(pp string)
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- func (p *Plugin) Workers() []*process.State
Constants ¶
View Source
const ( // RrMode env variable RrMode string = "RR_MODE" RrModeJobs string = "jobs" PluginName string = "jobs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // NumPollers configures number of priority queue pollers // Should be no more than 255 // Default - num logical cores NumPollers uint8 `mapstructure:"num_pollers"` // PipelineSize is the limit of a main jobs queue which consume Items from the drivers pipeline // Driver pipeline might be much larger than a main jobs queue PipelineSize uint64 `mapstructure:"pipeline_size"` // Timeout in seconds is the per-push limit to put the job into queue Timeout int `mapstructure:"timeout"` // Pool configures roadrunner workers pool. Pool *poolImpl.Config `mapstructure:"Pool"` // Pipelines defines mapping between PHP job pipeline and associated job broker. Pipelines map[string]*pipeline.Pipeline `mapstructure:"pipelines"` // Consuming specifies names of pipelines to be consumed on service start. Consume []string `mapstructure:"consume"` }
Config defines settings for job broker, workers and job-pipeline mapping.
func (*Config) InitDefaults ¶
func (c *Config) InitDefaults()
type Plugin ¶
func (*Plugin) CollectMQBrokers ¶
func (p *Plugin) CollectMQBrokers(name endure.Named, c jobs.Constructor)
func (*Plugin) MetricsCollector ¶
func (p *Plugin) MetricsCollector() []prometheus.Collector
Click to show internal directories.
Click to hide internal directories.