types

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IgnoreTaskAfterRunningTimeSecond = 20
	LastFinishedTaskTimeRangeSecond  = 60 * 15
	MaxJobsSampleLimitMaxTimes       = 5

	ListKeyTaskID     = "task_id"
	ListKeyProjectID  = "project_id"
	ListKeyObserved   = "observed"
	ListKeyReleased   = "released"
	ListKeyStatus     = "status"
	ListKeyMaxJobs    = "max_jobs"
	ListKeyCPUTotal   = "cpu_total"
	ListKeyCreateTime = "create_time"
	ListKeyRequestCPU = "request_cpu"
	ListKeySuggestCPU = "suggest_cpu"
	ListKeyAcTime     = "accepted_time"
)
View Source
const (
	DistCCControllerElectionPath = "controller"
)

Variables

View Source
var (
	InspectRunningTaskTimeGap     = 500 * time.Millisecond
	InspectDistCCStatTimeGap      = 5 * time.Second
	CheckProjectTimeGap           = 5 * time.Minute
	LastSuggestionAcceptedTimeGap = 7 * 24 * time.Hour
)

Functions

This section is empty.

Types

type DistCCControllerInfo

type DistCCControllerInfo struct {
	types.ServerInfo
}

DistCCControllerInfo describe the server info of controller

func (*DistCCControllerInfo) GetURI

func (di *DistCCControllerInfo) GetURI() string

GetURI return the server url

type RoleChangeEvent

type RoleChangeEvent <-chan RoleType

Provides the master-change event notifications.

type RoleType

type RoleType string
const (
	DistCCControllerMaster  RoleType = "master"
	DistCCControllerSlave   RoleType = "slave"
	DistCCControllerUnknown RoleType = "unknown"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL