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) {
},
}
- squeueUpdater.StartMonitor(time.Duration(500) * time.Millisecond)
+ sqCheck = SqueueChecker{Period: 500 * time.Millisecond}
err = dispatcher.Run()
c.Assert(err, IsNil)
- squeueUpdater.Done()
+ sqCheck.Stop()
c.Check(sbatchCmdLine, DeepEquals, sbatchCmdComps)
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) {