tasks

package
v0.0.0-...-df5dda6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConversionRetryInterval = 2 * time.Minute
)
View Source
const (
	DeliveryRetryInterval = 2 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Config tenso.Configuration
	DB     *gorp.DbMap
	// contains filtered or unexported fields
}

Context holds things used by the various task implementations in this package.

func NewContext

func NewContext(cfg tenso.Configuration, db *gorp.DbMap) *Context

func (*Context) ConversionJob

func (c *Context) ConversionJob(registerer prometheus.Registerer) jobloop.Job

func (*Context) DeliveryJob

func (c *Context) DeliveryJob(registerer prometheus.Registerer) jobloop.Job

func (*Context) GarbageCollectionJob

func (c *Context) GarbageCollectionJob(registerer prometheus.Registerer) jobloop.Job

func (*Context) OverrideTimeNow

func (c *Context) OverrideTimeNow(now func() time.Time) *Context

OverrideTimeNow is used by unit tests to inject a mock clock.

Jump to

Keyboard shortcuts

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