Files
Yuki IwaiandGitHub 152f19185e Add shellcheck (#1857)
* add shellcheck

* fix /test/e2e/v1beta1/scripts/run-e2e-experiment.sh

* fix test/e2e/v1beta1/scripts/setup-katib.sh

* fix pkg/apis/manager/[v1beta1|health]/build.sh

* fix scripts/v1beta1/deploy.sh

* fix scripts/v1beta1/release.sh

* fix scripts/v1beta1/update-images.sh

* fix scripts/v1beta1/undeploy.sh

* fix hack/update-openapigen.sh

* update boilerplate

* fix hack/gen-python-sdk/gen-sdk.sh

* fix hack/update-codegen.sh

* fix hack/update-mockgen.sh

* use /usr/bin/env bash

* add path to update-boilerplate.sh

* fix script to update boilerplate

* fix comment
2022-05-03 01:15:00 +00:00

64 lines
2.1 KiB
Go

/*
Copyright 2022 The Kubeflow Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package common
import (
"time"
v1beta1common "github.com/kubeflow/katib/pkg/apis/controller/common/v1beta1"
)
const (
// DefaultPollInterval is the default value for interval between running processes check
DefaultPollInterval = time.Second
// DefaultTimeout is the default value for timeout before invoke error during running processes check
// To run without timeout set value to 0
DefaultTimeout = 0
// DefaultWaitAll is the default value whether wait for all other main process of container exiting
DefaultWaitAllProcesses = "true"
// TrainingCompleted is the job finished marker in $$$$.pid file when main training process is completed
TrainingCompleted = "completed"
// TrainingEarlyStopped is the job finished marker in $$$$.pid file when main training process is early stopped
TrainingEarlyStopped = "early-stopped"
// DefaultFilter is the default metrics collector filter to parse the metrics.
// Metrics must be printed this way
// loss=0.3
// accuracy=.98
// Score=-7.53e-05
// Score=-7.53e+05
// Score=1E0
// Score=1.23E10
DefaultFilter = `([\w|-]+)\s*=\s*([+-]?\d*(\.\d+)?([Ee][+-]?\d+)?)`
TimeStampJsonKey = "timestamp"
// TODO (andreyvelich): Do we need to maintain 2 names? Should we leave only 1?
MetricCollectorContainerName = "metrics-collector"
MetricLoggerCollectorContainerName = "metrics-logger-and-collector"
)
var (
AutoInjectMetricsCollectorList = [...]v1beta1common.CollectorKind{
v1beta1common.StdOutCollector,
v1beta1common.TfEventCollector,
v1beta1common.FileCollector,
v1beta1common.PrometheusMetricCollector,
}
)