RunContainer func(*Dispatcher, arvados.Container, chan arvados.Container)
// Amount of time to wait between polling for updates.
- PollInterval time.Duration
+ PollPeriod time.Duration
// Minimum time between two attempts to run the same container
MinRetryPeriod time.Duration
}
func (dispatcher *Dispatcher) pollContainers(stop chan struct{}) {
- ticker := time.NewTicker(dispatcher.PollInterval)
+ ticker := time.NewTicker(dispatcher.PollPeriod)
defer ticker.Stop()
paramsQ := arvadosclient.Dict{
dispatcher := dispatch.Dispatcher{
Arv: arv,
RunContainer: run,
- PollInterval: time.Duration(*pollInterval) * time.Second,
+ PollPeriod: time.Duration(*pollInterval) * time.Second,
}
err = dispatcher.Run()
crunchRunCommand = &echo
dispatcher := dispatch.Dispatcher{
- Arv: arv,
- PollInterval: time.Second,
+ Arv: arv,
+ PollPeriod: time.Second,
RunContainer: func(dispatcher *dispatch.Dispatcher,
container arvados.Container,
status chan arvados.Container) {
*crunchRunCommand = crunchCmd
dispatcher := dispatch.Dispatcher{
- Arv: arv,
- PollInterval: time.Duration(1) * time.Second,
+ Arv: arv,
+ PollPeriod: time.Duration(1) * time.Second,
RunContainer: func(dispatcher *dispatch.Dispatcher,
container arvados.Container,
status chan arvados.Container) {
dispatcher := dispatch.Dispatcher{
Arv: arv,
RunContainer: run,
- PollInterval: time.Duration(theConfig.PollPeriod),
+ PollPeriod: time.Duration(theConfig.PollPeriod),
MinRetryPeriod: time.Duration(theConfig.MinRetryPeriod),
}
theConfig.CrunchRunCommand = []string{"echo"}
dispatcher := dispatch.Dispatcher{
- Arv: arv,
- PollInterval: time.Duration(1) * time.Second,
+ Arv: arv,
+ PollPeriod: time.Duration(1) * time.Second,
RunContainer: func(dispatcher *dispatch.Dispatcher,
container arvados.Container,
status chan arvados.Container) {
theConfig.CrunchRunCommand = []string{crunchCmd}
dispatcher := dispatch.Dispatcher{
- Arv: arv,
- PollInterval: time.Duration(1) * time.Second,
+ Arv: arv,
+ PollPeriod: time.Duration(1) * time.Second,
RunContainer: func(dispatcher *dispatch.Dispatcher,
container arvados.Container,
status chan arvados.Container) {