feat(新功能):

fix(修复bug):   手动断开mq连接
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zchengrong
2025-04-22 15:58:07 +08:00
parent ac9c9b016d
commit 4dbb259b8b
3 changed files with 7 additions and 3 deletions

View File

@@ -139,6 +139,7 @@ class GenerateRelightImage:
dict_gen_product_data, str_gen_product_data = self.read_tasks_status()
if DEBUG is False:
self.channel.basic_publish(exchange='', routing_key=GRI_RABBITMQ_QUEUES, body=str_gen_product_data)
self.connection.close()
logger.info(f" [x] Sent to {GRI_RABBITMQ_QUEUES} data@@@@ {json.dumps(dict_gen_product_data, indent=4)}")