scheduler

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package scheduler provides ability to create scheduled job

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateScheduler

func CreateScheduler(log log.T, task func(), frequencyInMinutes int) (job *scheduler.Job, err error)

CreateScheduler runs a given poll job every pollFrequencyMinutes

func ScheduleNextRun

func ScheduleNextRun(j *scheduler.Job)

ScheduleNextRun skips waiting and schedule next run immediately

func Stop

func Stop(job *scheduler.Job)

Stop stops the scheduler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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