Skip to content

Commit

Permalink
Merge pull request #510 from victorcoder/fix_scheduler_started_expvar
Browse files Browse the repository at this point in the history
scheduler_started expvar fix
  • Loading branch information
Victor Castell authored Mar 29, 2019
2 parents 56801ae + dc3ec41 commit e660ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkron/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Scheduler struct {

func NewScheduler() *Scheduler {
c := cron.New()
schedulerStarted.Set(1)
schedulerStarted.Set(0)
return &Scheduler{Cron: c, Started: false}
}

Expand Down Expand Up @@ -74,8 +74,8 @@ func (s *Scheduler) Stop() {
cronInspect.Do(func(kv expvar.KeyValue) {
kv.Value = nil
})
schedulerStarted.Set(0)
}
schedulerStarted.Set(0)
}

func (s *Scheduler) Restart(jobs []*Job) {
Expand Down

0 comments on commit e660ec8

Please sign in to comment.