3
0
Files
corteza/pkg/scheduler/healthcheck.go
2020-12-14 14:51:40 +01:00

20 lines
253 B
Go

package scheduler
import (
"context"
"fmt"
)
// Healtcheck for (global) scheduler
func Healthcheck(ctx context.Context) error {
if gScheduler == nil {
return nil
}
if gScheduler.ticker == nil {
return fmt.Errorf("stopped")
}
return nil
}