Add ws rabbit config

This commit is contained in:
Ivan Vazhenin
2023-12-04 20:01:46 +03:00
parent 436703641b
commit 81aac15ec6
2 changed files with 12 additions and 0 deletions

View File

@@ -577,6 +577,10 @@ def apply_commits(params, files, url):
con = OOConnectionParams(scheme, Config.oodb_host, Config.oodb_port, Config.oodb_dbname,
Config.oodb_username, Config.oodb_passwd, scheme)
ws = OODBWorkspace.ws(scheme)
if Config.ws_rabbit_params and not ws.hasProducer():
ws.setProducer(Config.ws_rabbit_params['host'], Config.ws_rabbit_params['port'],
Config.ws_rabbit_params['exchange'], Config.ws_rabbit_params['user'],
Config.ws_rabbit_params['password'])
ws.setCurrentUser(bnd)
if branch:
logging.warning(branch)