소스 검색

取消关闭数据库连接

locky 1 년 전
부모
커밋
e6041d0215
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      Controller/Cron/CronTaskController.py

+ 0 - 2
Controller/Cron/CronTaskController.py

@@ -3,7 +3,6 @@
 # @Time      : 2023/12/11 15:47
 import threading
 
-from django.db import close_old_connections
 from django.views import View
 
 from Object.RedisObject import RedisObject
@@ -65,4 +64,3 @@ class CronTaskView(View):
                     encode('UTF-8', 'ignore').decode('UTF-8')
             equipment_info_list.append(equipment_info_model(**equipment_info_data))
         equipment_info_model.objects.bulk_create(equipment_info_list)
-        close_old_connections()