From 7fba2e116c82f4667cfa49c94fea45461d05a12f Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sat, 6 Jul 2024 16:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E4=B8=BA=E5=A4=9A=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/photo_review.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index 4ad31da..6cfae7d 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -416,10 +416,10 @@ def photo_review(pk_phhd): elif phrec.cRectype == "4": cost_list.append(phrec) - with concurrent.futures.ProcessPoolExecutor() as executor: - # executor.submit(settlement_task, pk_phhd, settlement_list) - # executor.submit(discharge_task, pk_phhd, discharge_record) - executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record) + with concurrent.futures.ThreadPoolExecutor as executor: + executor.submit(settlement_task, pk_phhd, settlement_list) + executor.submit(discharge_task, pk_phhd, discharge_record) + # executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record) executor.submit(cost_task, pk_phhd, cost_list)