3
0

Prevent scheduler's healtcheck FAIL when disabled

This commit is contained in:
Denis Arh 2020-12-14 14:38:16 +01:00
parent 629cdc06cd
commit 6aab216f89

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 {