peng 2 жил өмнө
parent
commit
7ab3b172db

+ 1 - 0
Controller/Cron/CronTaskController.py

@@ -1262,6 +1262,7 @@ class CronCollectDataView(View):
         try:
         try:
             unicom_qs = UnicomComboOrderInfo.objects.filter(combo__combo_type__in=[0, 1, 2]).values('iccid')
             unicom_qs = UnicomComboOrderInfo.objects.filter(combo__combo_type__in=[0, 1, 2]).values('iccid')
             asy = threading.Thread(target=CronCollectDataView.thread_collect_flow, args=(unicom_qs))
             asy = threading.Thread(target=CronCollectDataView.thread_collect_flow, args=(unicom_qs))
+            asy.start()
             return response.json(0)
             return response.json(0)
         except Exception as e:
         except Exception as e:
             return response.json(500, repr(e))
             return response.json(500, repr(e))