Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeartbeatInterval = time.Second * 30
HeartbeatInterval is the duration between an instance's heartbeats a heartbeat is a sign of life, committed to DB, for an instance to assert that it is still active useful to discriminate tasks acquired by a defunct instance
Functions ¶
Types ¶
type Instance ¶
Instance represents one active instance of µTask with its ID acquired from DB, and its latest heartbeat timestamp
func ListInstances ¶
func ListInstances(dbp zesty.DBProvider) (ii []*Instance, err error)
ListInstances returns a list of µTask instances from DB
Click to show internal directories.
Click to hide internal directories.