func (wh *WorkflowHandler) Health(ctx context.Context) (*types.HealthStatus, error) {
	status := HealthStatus(atomic.LoadInt32(&wh.healthStatus))
	msg := status.String()

	if status != HealthStatusOK {
		wh.GetLogger().Warn(fmt.Sprintf("Service status is: %v", msg))
	}

	return &types.HealthStatus{
		Ok:  status == HealthStatusOK,
		Msg: msg,
	}, nil
}
// Health is for health check
Health is for health check
// Health is for health check
func (wh *WorkflowHandler) Health(ctx context.Context) (*types.HealthStatus, error) {
	status := HealthStatus(atomic.LoadInt32(&wh.healthStatus))
	msg := status.String()
	if status != HealthStatusOK {
		wh.GetLogger().Warn(fmt.Sprintf("Service status is: %v", msg))
	}
	return &types.HealthStatus{
		Ok:  status == HealthStatusOK,
		Msg: msg,
	}, nil
}
func ( wh * WorkflowHandler ) Health ( ctx context . Context ) ( * types . HealthStatus , error ) { status := HealthStatus ( atomic . LoadInt32 ( & wh . healthStatus ) ) msg := status . String ( ) if status != HealthStatusOK { wh . GetLogger ( ) . Warn ( fmt . Sprintf ( " " , msg ) ) } return & types . HealthStatus { Ok : status == HealthStatusOK , Msg : msg , } , nil }
Health is for health check
Health is for health check