Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultGuessDur = time.Minute * 20 TaskBookkeepingCollection = "task_bk" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskBookkeeping ¶
type TaskBookkeeping struct {
// standard object id
Id bson.ObjectId `bson:"_id"`
// info that tasks with the same guessed duration will share
Name string `bson:"name"`
BuildVariant string `bson:"build_variant"`
HostType string `bson:"host_type"` // may change to an enum once Host.HostType changes
Project string `bson:"branch"`
// the duration we expect the task to take
ExpectedDuration time.Duration `bson:"expected_duration"`
// the number of times this task - as defined by the
// buildvariant and task name - has been started
NumStarted int64 `bson:"num_started"`
}
Click to show internal directories.
Click to hide internal directories.