Prevent scheduler's healtcheck FAIL when disabled

This commit is contained in:
Denis Arh
2020-12-14 14:51:40 +01:00
parent 629cdc06cd
commit 6aab216f89
+1 -1
View File
@@ -8,7 +8,7 @@ import (
// Healtcheck for (global) scheduler
func Healthcheck(ctx context.Context) error {
if gScheduler == nil {
return fmt.Errorf("uninitialized")
return nil
}
if gScheduler.ticker == nil {