worker

package
v0.0.0-...-a5c446f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPollInterval

func GetPollInterval(workerType string, conf config.Config) (time.Duration, error)

GetPollInterval returns the frequency at which a worker will run.

Types

type Worker

type Worker interface {
	Initialize(conf config.Config, sm state.Manager, eksEngine engine.Engine, emrEngine engine.Engine, log flotillaLog.Logger, pollInterval time.Duration, qm queue.Manager) error
	Run() error
	GetTomb() *tomb.Tomb
}

Worker defines a background worker process

func NewWorker

func NewWorker(workerType string, log flotillaLog.Logger, conf config.Config, eksEngine engine.Engine, emrEngine engine.Engine, sm state.Manager, qm queue.Manager) (Worker, error)

NewWorker instantiates a new worker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL