修改多进程为多线程
This commit is contained in:
@@ -416,10 +416,10 @@ def photo_review(pk_phhd):
|
|||||||
elif phrec.cRectype == "4":
|
elif phrec.cRectype == "4":
|
||||||
cost_list.append(phrec)
|
cost_list.append(phrec)
|
||||||
|
|
||||||
with concurrent.futures.ProcessPoolExecutor() as executor:
|
with concurrent.futures.ThreadPoolExecutor as executor:
|
||||||
# executor.submit(settlement_task, pk_phhd, settlement_list)
|
executor.submit(settlement_task, pk_phhd, settlement_list)
|
||||||
# executor.submit(discharge_task, pk_phhd, discharge_record)
|
executor.submit(discharge_task, pk_phhd, discharge_record)
|
||||||
executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record)
|
# executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record)
|
||||||
executor.submit(cost_task, pk_phhd, cost_list)
|
executor.submit(cost_task, pk_phhd, cost_list)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user