cron

package
v1.8.0-fossa.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJob

type CronJob struct {
	EntryId  cron.EntryID
	Name     string
	Schedule string
	// contains filtered or unexported fields
}

type CronSubsystem

type CronSubsystem struct {
	Server   *server.Server
	Options  *Options
	Cron     *cron.Cron
	EntryIDs []cron.EntryID
	// contains filtered or unexported fields
}

CronSubsystem enables cron jobs to queue faktory jobs cron jobs are defined in the configuration

func (*CronSubsystem) Name

func (c *CronSubsystem) Name() string

Name - returns the name of the subsystem or plugin

func (*CronSubsystem) Reload

func (c *CronSubsystem) Reload(s *server.Server) error

Reload - the config is reloaded by faktory remove any exist cron jobs and load new ones from the config

func (*CronSubsystem) Start

func (c *CronSubsystem) Start(s *server.Server) error

Start - parse config and schedule cron jobs

type Options

type Options struct {
	// Enabled controls whether or not the plugin will function
	Enabled bool
	// Tags sent to datdog
	CronJobs []CronJob
}

type QueueJob

type QueueJob struct {
	Subsystem *CronSubsystem
	// contains filtered or unexported fields
}

QueueJob - enqueues a faktory job

func (*QueueJob) Run

func (c *QueueJob) Run()

Run - creates a new faktory job and enqueues it

Jump to

Keyboard shortcuts

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