MCPcopy
hub / github.com/mcuadros/ofelia / Start

Method Start

core/scheduler.go:50–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (s *Scheduler) Start() error {
51 if len(s.Jobs) == 0 {
52 return ErrEmptyScheduler
53 }
54
55 s.Logger.Debugf("Starting scheduler with %d jobs", len(s.Jobs))
56
57 s.mergeMiddlewares()
58 s.isRunning = true
59 s.cron.Start()
60 return nil
61}
62
63func (s *Scheduler) mergeMiddlewares() {
64 for _, j := range s.Jobs {

Callers 2

TestStartStopMethod · 0.95
startMethod · 0.45

Calls 2

mergeMiddlewaresMethod · 0.95
DebugfMethod · 0.65

Tested by 1

TestStartStopMethod · 0.76