scheduler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleaner

func Cleaner(nbToKeep int)

Cleaner is the cleaner main goroutine

func CleanerRun

func CleanerRun(nbToKeep int) ([]sdk.PipelineSchedulerExecution, error)

CleanerRun is the core function of the cleaner goroutine

func Delete

Delete a pipeline scheduler

func DeleteExecution

func DeleteExecution(db gorp.SqlExecutor, s *sdk.PipelineSchedulerExecution) error

DeleteExecution deletes executions

func Executer

func Executer()

Executer is the goroutine which run the pipelines

func ExecuterRun

func ExecuterRun() ([]sdk.PipelineSchedulerExecution, error)

ExecuterRun is the core function of Executer goroutine

func GetByApplication

func GetByApplication(db gorp.SqlExecutor, app *sdk.Application) ([]sdk.PipelineScheduler, error)

GetByApplication get all pipeline schedulers for an application

func GetByApplicationPipeline

func GetByApplicationPipeline(db gorp.SqlExecutor, app *sdk.Application, pip *sdk.Pipeline) ([]sdk.PipelineScheduler, error)

GetByApplicationPipeline get all pipeline schedulers for a application/pipeline

func GetByApplicationPipelineEnv

func GetByApplicationPipelineEnv(db gorp.SqlExecutor, app *sdk.Application, pip *sdk.Pipeline, env *sdk.Environment) ([]sdk.PipelineScheduler, error)

GetByApplicationPipelineEnv get all pipeline schedulers for a application/pipeline

func GetByPipeline

func GetByPipeline(db gorp.SqlExecutor, pip *sdk.Pipeline) ([]sdk.PipelineScheduler, error)

GetByPipeline get all pipeline schedulers for a pipeline

func Initialize

func Initialize(nbExecToKeep int)

Initialize starts the 3 goroutines for pipeline schedulers

func Insert

Insert a pipeline scheduler

func InsertExecution

func InsertExecution(db gorp.SqlExecutor, s *sdk.PipelineSchedulerExecution) error

InsertExecution a pipeline scheduler execution

func Load

Load loads a PipelineScheduler by id

func LoadAll

func LoadAll(db gorp.SqlExecutor) ([]sdk.PipelineScheduler, error)

LoadAll retrieves all pipeline scheduler from database

func LoadExecutions

func LoadExecutions(db gorp.SqlExecutor, schedulerID int64) ([]sdk.PipelineSchedulerExecution, error)

LoadExecutions loads all pipeline execution

func LoadLastExecutedExecution

func LoadLastExecutedExecution(db gorp.SqlExecutor, id int64) (*sdk.PipelineSchedulerExecution, error)

LoadLastExecutedExecution loads last pipeline execution

func LoadLastExecution

func LoadLastExecution(db gorp.SqlExecutor, id int64) (*sdk.PipelineSchedulerExecution, error)

LoadLastExecution loads last pipeline execution

func LoadNextExecution

func LoadNextExecution(db gorp.SqlExecutor, id int64) (*sdk.PipelineSchedulerExecution, error)

LoadNextExecution loads next pipeline execution

func LoadPastExecutions

func LoadPastExecutions(db gorp.SqlExecutor, id int64) ([]sdk.PipelineSchedulerExecution, error)

LoadPastExecutions loads all pipeline execution executed prior date 't'

func LoadPendingExecutions

func LoadPendingExecutions(db gorp.SqlExecutor) ([]sdk.PipelineSchedulerExecution, error)

LoadPendingExecutions loads all pipeline execution

func LoadUnscheduledPipelines

func LoadUnscheduledPipelines(db gorp.SqlExecutor) ([]sdk.PipelineScheduler, error)

LoadUnscheduledPipelines loads unscheduled pipelines

func LockPipelineExecutions

func LockPipelineExecutions(db gorp.SqlExecutor) error

LockPipelineExecutions locks table LockPipelineExecutions

func New

func New(app *sdk.Application, pip *sdk.Pipeline, env *sdk.Environment, cron string, args ...sdk.Parameter) (*sdk.PipelineScheduler, error)

New instanciates a new pipeline scheduler

func Next

Next Compute the next PipelineSchedulerExecution

func Run added in v0.4.0

Run is the core function of Scheduler goroutine

func Scheduler

func Scheduler()

Scheduler is the goroutine which compute date of next execution for pipeline scheduler

func Status added in v0.4.0

func Status() string

Status returns Event status

func Update

Update a pipeline scheduler

func UpdateExecution

func UpdateExecution(db gorp.SqlExecutor, s *sdk.PipelineSchedulerExecution) error

UpdateExecution a pipeline scheduler execution

Types

This section is empty.

Jump to

Keyboard shortcuts

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