self.rpcserver.start()
if self.report_interval:
- pulse = loopingcall.LoopingCall(self.report_state)
+ pulse = loopingcall.FixedIntervalLoopingCall(
+ self.report_state)
pulse.start(interval=self.report_interval,
initial_delay=self.report_interval)
self.timers.append(pulse)
else:
initial_delay = None
- periodic = loopingcall.LoopingCall(self.periodic_tasks)
+ periodic = loopingcall.FixedIntervalLoopingCall(
+ self.periodic_tasks)
periodic.start(interval=self.periodic_interval,
initial_delay=initial_delay)
self.timers.append(periodic)
# if vdiskcopy exists in database, start the looping call
if len(self._vdiskcopyops) >= 1:
- self._vdiskcopyops_loop = loopingcall.LoopingCall(
+ self._vdiskcopyops_loop = loopingcall.FixedIntervalLoopingCall(
self._check_volume_copy_ops)
self._vdiskcopyops_loop.start(interval=self.VDISKCOPYOPS_INTERVAL)
# We added the first copy operation, so start the looping call
if len(self._vdiskcopyops) == 1:
- self._vdiskcopyops_loop = loopingcall.LoopingCall(
+ self._vdiskcopyops_loop = loopingcall.FixedIntervalLoopingCall(
self._check_volume_copy_ops)
self._vdiskcopyops_loop.start(interval=self.VDISKCOPYOPS_INTERVAL)