scheduler

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleWorker

type ScheduleWorker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(
	config config.Config,
	mq mq.MQ,
	lock lock.Locker,
	logger zerolog.Logger,
	lockTimeout time.Duration,
	tracer *opentracer.ServiceTracer,
) *ScheduleWorker

func (*ScheduleWorker) CreateTaskStatus

func (worker *ScheduleWorker) CreateTaskStatus(
	taskOutput *message.TaskOutput,
) error

func (*ScheduleWorker) Process

func (worker *ScheduleWorker) Process(taskOutput *message.TaskOutput) (*message.TaskInput, error)

func (*ScheduleWorker) UpdateJob

func (worker *ScheduleWorker) UpdateJob(
	job *dbmodel.Job,
) error

Jump to

Keyboard shortcuts

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