scheduler

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

func New

func New(managerClient manager.NodeManagerServiceClient, nodesClient nodes.NodesServiceClient, db *pgdb.DB, ingestClient ingest.ComplianceIngesterClient, secretsClient secrets.SecretsServiceClient) *Scheduler

func (*Scheduler) PollForJobs

func (a *Scheduler) PollForJobs(ctx context.Context)

PollForJobs loops every minute looking to create child jobs from recurring due jobs

func (*Scheduler) Run

func (a *Scheduler) Run(job *jobs.Job) error

Run a job. Schedule, resolve, distribute, and execute it.

func (*Scheduler) RunHungJobs

func (a *Scheduler) RunHungJobs(ctx context.Context, scheduledJobsIds []string)

Jump to

Keyboard shortcuts

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