[bugfix] Return useful err on server start failure

This commit is contained in:
tobi 2025-03-05 15:45:35 +01:00
commit 85d4994b96
5 changed files with 73 additions and 50 deletions

View file

@ -44,6 +44,11 @@ func (sch *Scheduler) Start() bool {
return false
}
// Started returns true if the scheduler has been started.
func (sch *Scheduler) Started() bool {
return sch.ts != nil
}
// Stop attempts to stop scheduler, cancelling
// all running tasks. Returns false if not running.
func (sch *Scheduler) Stop() bool {