consts.go 1.18 KB
Newer Older
Kamil Trzciński's avatar
Kamil Trzciński committed
1
package common
Kamil Trzciński's avatar
Kamil Trzciński committed
2

3 4
import "time"

5
const DefaultTimeout = 7200
6
const DefaultExecTimeout = 1800
7
const CheckInterval = 3 * time.Second
8
const NotHealthyCheckInterval = 300
9
const UpdateInterval = 3 * time.Second
10
const UpdateRetryInterval = 3 * time.Second
11 12 13 14 15
const ReloadConfigInterval = 3
const HealthyChecks = 3
const HealthCheckInterval = 3600
const DefaultWaitForServicesTimeout = 30
const ShutdownTimeout = 30
16
const DefaultOutputLimit = 4096 // 4MB in kilobytes
17
const ForceTraceSentInterval = 30 * time.Second
18
const PreparationRetries = 3
19 20 21
const DefaultGetSourcesAttempts = 1
const DefaultArtifactDownloadAttempts = 1
const DefaultRestoreCacheAttempts = 1
22 23
const KubernetesPollInterval = 3
const KubernetesPollTimeout = 180
24
const AfterScriptTimeout = 5 * time.Minute
25
const DefaultMetricsServerPort = 9252
26
const DefaultCacheRequestTimeout = 10
27
const DefaultNetworkClientTimeout = 60 * time.Minute
28
const DefaultSessionTimeout = 30 * time.Minute
Kamil Trzciński's avatar
Kamil Trzciński committed
29 30

var PreparationRetryInterval = 3 * time.Second
31 32 33 34 35 36 37

const (
	TestAlpineImage       = "alpine:3.7"
	TestAlpineNoRootImage = "registry.gitlab.com/gitlab-org/gitlab-runner/alpine-no-root:latest"
	TestDockerDindImage   = "docker:18-dind"
	TestDockerGitImage    = "docker:18-git"
)