rename option

This commit is contained in:
Tomas Kopecek 2022-02-07 10:07:26 +01:00
parent 0449aa4829
commit 6aaa6b3248
5 changed files with 13 additions and 13 deletions

View file

@ -356,7 +356,7 @@ def handle_db_msgs(urls, CONFIG):
# we're running in postCommit, so we need to handle new transaction
c.execute('BEGIN')
try:
c.execute('LOCK TABLE proton_queue IN ACCESS EXCLUSIVE MODE NOWAIT', log=False)
c.execute('LOCK TABLE proton_queue IN ACCESS EXCLUSIVE MODE NOWAIT', log_errors=False)
except psycopg2.OperationalError:
LOG.debug('skipping db queue due to lock')
return