cron

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcNewNext

func CalcNewNext(schedule string, now time.Time) (time.Time, error)

CalcNewNext parses a cron string and calculates the next exec time based on it

func CreatePipeline

func CreatePipeline(ctx context.Context, store store.Store, f forge.Forge, cron *model.Cron) (*model.Repo, *model.Pipeline, error)

func Start

func Start(ctx context.Context, store store.Store, forge forge.Forge) error

Start starts the cron scheduler loop

Types

This section is empty.

Jump to

Keyboard shortcuts

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