Prevent scheduler's healtcheck FAIL when disabled
This commit is contained in:
parent
629cdc06cd
commit
6aab216f89
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user