Can't stop & start timer pulse
Bug #1547029 reported by
Endre Karlson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.service |
Expired
|
Undecided
|
Unassigned |
Bug Description
import logging
import random
logging.
from oslo_config import cfg
from oslo_service import service
from oslo_service import threadgroup
def print_rand():
print(
class Svc(service.
def __init__(self, *args, **kwargs):
super(Svc, self)._
self.pulse = self.tg.
svc = Svc()
svc.start()
service.
To post a comment you must log in.
venv)karlsone@ karlsone: ~/projects/ dnsaas/ designate$ python test.py pulse.start( 1) karlsone/ projects/ dnsaas/ designate/ .venv/local/ lib/python2. 7/site- packages/ oslo_service/ loopingcall. py", line 180, in start on_exception= stop_on_ exception) karlsone/ projects/ dnsaas/ designate/ .venv/local/ lib/python2. 7/site- packages/ oslo_service/ loopingcall. py", line 115, in _start self._RUN_ ONLY_ONE_ MESSAGE)
Traceback (most recent call last):
File "test.py", line 25, in <module>
svc = Svc()
File "test.py", line 22, in __init__
self.
File "/home/
stop_
File "/home/
raise RuntimeError(
RuntimeError: A fixed interval looping call can only run one function at a time