Prevent scheduler's healtcheck FAIL when disabled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user