Example #1
0
 def configure_eventbus(self, enabled):
     if enabled:
         if not EventBus.instance:
             EventBus.create(f"{self.working_dir}/_events")
             EventBus.start()
     else:
         EventBus.shutdown()
Example #2
0
File: mcp.py Project: Yelp/Tron
 def configure_eventbus(self, enabled):
     if enabled:
         if not EventBus.instance:
             EventBus.create(f"{self.working_dir}/_events")
             EventBus.start()
     else:
         EventBus.shutdown()
Example #3
0
 def teardown(self):
     EventBus.shutdown()
     self.log_dir.cleanup()
Example #4
0
 def shutdown(self):
     EventBus.shutdown()
     self.state_watcher.shutdown()
Example #5
0
File: mcp.py Project: Yelp/Tron
 def shutdown(self):
     EventBus.shutdown()
     self.state_watcher.shutdown()