xtn-tools-pro 1.0.0.6.7__py3-none-any.whl → 1.0.0.6.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xtn-tools-pro might be problematic. Click here for more details.

@@ -105,8 +105,18 @@ class GoFunTaskV3:
105
105
 
106
106
  go_process_list = []
107
107
  go_task_fun_cnt = 0
108
+ go_task_status_error = 0
108
109
 
109
110
  while True:
111
+ qsize = self.download_queue.qsize()
112
+ if not go_process_list and self.manager_info["gofun_kill_status"] and qsize:
113
+ # 状态错误
114
+ if go_task_status_error >= 10:
115
+ self.manager_info["gofun_kill_status"] = False
116
+ logger.critical(
117
+ f"状态错误 次数{go_task_status_error}进程{len(go_process_list)}状态{self.manager_info['gofun_kill_status']}队列{qsize}")
118
+ time.sleep(5)
119
+
110
120
  if not go_process_list and not self.manager_info["gofun_kill_status"]:
111
121
  # 未启动gofun 且 无需kill 则启动多进程多线程
112
122
  for i in range(processes_num):
@@ -127,6 +137,7 @@ class GoFunTaskV3:
127
137
  # p.terminate()
128
138
  p.join()
129
139
  go_process_list = []
140
+ go_task_status_error = 0
130
141
  logger.info("检测到关闭指令,关闭gofun成功!!!")
131
142
 
132
143
  elif not self.manager_info["gofun_kill_status"] and go_process_list:
@@ -170,7 +181,6 @@ class GoFunTaskV3:
170
181
  qsize = download_queue.qsize()
171
182
  logger.info(f"当前队列剩余任务数:{qsize}")
172
183
  if qsize >= 10:
173
- self.manager_info["gofun_kill_status"] = False
174
184
  time.sleep(2)
175
185
  continue
176
186
  resp = requests.get(download_url, headers=headers, params=params, timeout=5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.6.7
3
+ Version: 1.0.0.6.9
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@gmail.com
@@ -12,7 +12,7 @@ xtn_tools_pro/proxy/proxy.py,sha256=No6E1pFY5yx2F4976pXPrLtq-QEVp79KupzcufjSN58,
12
12
  xtn_tools_pro/task_pro/__init__.py,sha256=nK3U47hWwE1H875ieEToH9r-jzXHS-PXk8cDstOvRE8,418
13
13
  xtn_tools_pro/task_pro/go_fun.py,sha256=hWEt2uJ9FCvJH7PhVZttS-11A7J6zbRKwX7c5YLYQag,19144
14
14
  xtn_tools_pro/task_pro/go_fun_v2.py,sha256=SgcXgtEBGSVL1V2LyqO0z8Md2H8JZxucYrLLIwqtiLM,18489
15
- xtn_tools_pro/task_pro/go_fun_v3.py,sha256=r1uuMq4qTxFbsfiRqrwaWDZEC3_MxuiLAOAuGx5Xk3k,15454
15
+ xtn_tools_pro/task_pro/go_fun_v3.py,sha256=7CYTT8EHUoRE6rzZ-AC9hqqQNfGZYc-kTsveTJvIqac,15970
16
16
  xtn_tools_pro/utils/__init__.py,sha256=I1_n_NP23F2lBqlF4EOlnOdLYxM8M4pbn63UhJN1hRE,418
17
17
  xtn_tools_pro/utils/crypto.py,sha256=RZ5AET4udlraACWMeNF-17JiZ2R6Ahb47_j4tjkV7LE,3190
18
18
  xtn_tools_pro/utils/file_utils.py,sha256=VfdIxog4s1UW5NpKkCvQsUs9qHjLoNCnstZbnftkT4w,2046
@@ -21,8 +21,8 @@ xtn_tools_pro/utils/log.py,sha256=m0WtTWkkwtrki1ftP8vCDR8bMfK2gcfUGx5J2x2IlLQ,10
21
21
  xtn_tools_pro/utils/retry.py,sha256=0wjHsR5DBBKpv4naMfxiky8kprrZes4WURIfFQ4H708,1657
22
22
  xtn_tools_pro/utils/sql.py,sha256=EAKzbkZP7Q09j15Gm6o0_uq0qgQmcCQT6EAawbpp4v0,6263
23
23
  xtn_tools_pro/utils/time_utils.py,sha256=TUtzG61PeVYXhaQd6pBrXAdlz7tBispNIRQRcGhE2No,4859
24
- xtn_tools_pro-1.0.0.6.7.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- xtn_tools_pro-1.0.0.6.7.dist-info/METADATA,sha256=jSppozOgS4z4s7y5McXurIHhRtSV0SG9IW1R5LbOPOA,455
26
- xtn_tools_pro-1.0.0.6.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
27
- xtn_tools_pro-1.0.0.6.7.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
28
- xtn_tools_pro-1.0.0.6.7.dist-info/RECORD,,
24
+ xtn_tools_pro-1.0.0.6.9.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ xtn_tools_pro-1.0.0.6.9.dist-info/METADATA,sha256=1VM0twgDzTYqYudF6DCT2dUcdWd26dkadjaRn8qkacQ,455
26
+ xtn_tools_pro-1.0.0.6.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
27
+ xtn_tools_pro-1.0.0.6.9.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
28
+ xtn_tools_pro-1.0.0.6.9.dist-info/RECORD,,