diff --git a/scheduler.go b/scheduler.go index 9827f0c..fc7f925 100644 --- a/scheduler.go +++ b/scheduler.go @@ -47,6 +47,8 @@ type Scheduler interface { // JobsWaitingInQueue number of jobs waiting in Queue in case of LimitModeWait // In case of LimitModeReschedule or no limit it will be always zero JobsWaitingInQueue() int + // IsStarted returns true if the scheduler has been started + IsStarted() bool } // ----------------------------------------------- @@ -779,6 +781,10 @@ func (s *scheduler) JobsWaitingInQueue() int { return 0 } +func (s *scheduler) IsStarted() bool { + return s.started +} + // ----------------------------------------------- // ----------------------------------------------- // ------------- Scheduler Options ---------------