Compare commits

...

5 commits

2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ Dependencies can be found within requirements.txt and are installed automaticall
To publish to RabbitMQ, loggingMode should be set to 'rabbitmq', and rabbitmqca, rabbitmqcacert, rabbitmqcakey, and rabbitmqRoutingKey should be provided. The certificates should align with the certificate authority which the RabbitMQ server recognises.
To publish direct into an MSSQL or MariaDB database, the loggingMode should be set accordingly (see below), and sqlUsername, sqlPassword, sqlServer, and sqlDatabase should be provided.
You will need the associated ODBC driver installed for whichever DBMS you choose. ODBC references can be modified in odbcReferences.py to suit your system. You can probably even get alternative DBMS's working such as PostgreSQL as long as you convert the schema.
See the available configuration options, which should be specified in config.py.

View file

@ -41,9 +41,9 @@ class rabbitMQClient:
self.rabbitmqPort = rabbitmqPort
self.routingKey = routingKey
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def publish(self, message):
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def publishMessage(conn):
ch = conn.channel()