* Move the server daemons into their own package With this change the internal/server package now is dedicated to the server domain (workers and controllers) and not to the server daemons. The hope is that this will make it easier to keep the daemons decoupled from the representation of the servers in the database.
15 lines
376 B
Go
15 lines
376 B
Go
package common
|
|
|
|
import "time"
|
|
|
|
// In the future we could make this configurable
|
|
const (
|
|
// StatusInterval is the base duration used in the calculation of the random backoff
|
|
// during the worker status report
|
|
StatusInterval = 2 * time.Second
|
|
|
|
// StatusTimeout is the timeout duration on status calls to the controller from
|
|
// the worker
|
|
StatusTimeout = 5 * time.Second
|
|
)
|