feat: Method to Return Schedule State

This commit is contained in:
Justin Hammond 2021-04-21 07:14:54 +08:00
parent 6eeb2cc626
commit 7457bc9eae

View file

@ -240,3 +240,7 @@ func negativeToZero(nextRunDuration time.Duration) time.Duration {
}
return nextRunDuration
}
// State Returns the current State of the Schedule
func (s *Schedule) State() State {
return s.state
}