姿势上传处理后,删除文件夹

This commit is contained in:
dongchangxi committed 2025-01-05 10:41:27 +08:00
1 parent 45d432d0e9
commit 3120dcb82e
2 files changed
+5

No files matched your search

@@ -116,6 +116,8 @@ def get_photo2_align_info(pid):
r = create_redis_connection()
r.rpush('ai:ai_build_mesh',pid)
#删除文件夹
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
def create_redis_connection():
"""创建 Redis 连接,若连接失败则重试"""
+3
View File
@@ -109,6 +109,9 @@ def get_photo2_align_info(pid,flagDoXmps=False):
#处理完成后塞入到指定的队列
r = create_redis_connection()
r.rpush('ai:ai_repeat_build',pid)
#删除文件夹
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
def create_redis_connection():