20 lines
253 B
Go
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
|
|
}
|