Browse Source

队列处理完扔到另外一个队列进行处理

master
dongchangxi 5 months ago
parent
commit
fa32886fb2
  1. 12
      apps/auto_convert3d_new.py

12
apps/auto_convert3d_new.py

@ -176,6 +176,18 @@ def team_check(r):
shutil.rmtree(os.path.join(workdir, 'print', pid,orderId), ignore_errors=True) shutil.rmtree(os.path.join(workdir, 'print', pid,orderId), ignore_errors=True)
print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), f'pid:{pid} 生成团队审核模型 end') print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), f'pid:{pid} 生成团队审核模型 end')
#塞入队列进行处理 , SADD 方式插入
queueData = {
'pid': pid,
'order_id': orderId,
'shop_id': shopId,
'oss_path': ossPath,
}
r.sadd('model:adjust_image_color', json.dumps(queueData))
def get_p3d_info(pid): def get_p3d_info(pid):
url = "https://mp.api.suwa3d.com/api/customerP3dLog/info?id="+pid url = "https://mp.api.suwa3d.com/api/customerP3dLog/info?id="+pid
res = requests.get(url) res = requests.get(url)

Loading…
Cancel
Save