9717cceb by 冯轩

MOD:max_conn_age,remove queue empty log

1 parent d4c1a428
......@@ -1646,7 +1646,7 @@ class Command(BaseCommand, LoggerMixin):
try:
channel, img_path, text_list = img_queue.get(block=False)
except Exception as e:
self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base))
# self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base))
time.sleep(self.sleep_time_img_get)
continue
else:
......
......@@ -102,7 +102,7 @@ for db_setting in DATABASES.values():
'driver': 'ODBC Driver 17 for SQL Server',
'extra_params': "odbc_cursortype=2"
}
db_setting['CONN_MAX_AGE'] = 60
db_setting['CONN_MAX_AGE'] = 0
# set this to False if you want to turn off pyodbc's connection pooling
DATABASE_CONNECTION_POOLING = True
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!