blob: 43afba7bba98f320aa0b6eabf73e68b562dd7018 [file] [log] [blame]
import threading
from openstack.observer import OpenStackObserver
from openstack.event_listener import EventListener
class Backend:
def run(self):
# start the openstack observer
observer = OpenStackObserver()
observer_thread = threading.Thread(target=observer.run)
observer_thread.start()
# start event listene
event_listener = EventListener()
event_listener_thread = threading.Thread(target=event_listener.run)
event_listener_thread.start()