cobweb-launcher 1.2.23__py3-none-any.whl → 1.2.25__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 cobweb-launcher might be problematic. Click here for more details.

@@ -209,9 +209,9 @@ class LauncherApi(Launcher):
209
209
  doing_len=len(self.__DOING__.keys()),
210
210
  todo_len=self.__LAUNCHER_QUEUE__['todo'].length,
211
211
  done_len=self.__LAUNCHER_QUEUE__['done'].length,
212
- redis_seed_count=self._db.zcount(self._todo_key, "-inf", "+inf") or "error",
213
- redis_todo_len=self._db.zcount(self._todo_key, 0, "(1000") or "error",
214
- redis_doing_len=self._db.zcount(self._todo_key, "-inf", "(0") or "error",
212
+ redis_seed_count=self._db.zcount(self._todo_key, "-inf", "+inf"),
213
+ redis_todo_len=self._db.zcount(self._todo_key, 0, "(1000"),
214
+ redis_doing_len=self._db.zcount(self._todo_key, "-inf", "(0"),
215
215
  upload_len=self.__LAUNCHER_QUEUE__['upload'].length,
216
216
  ))
217
217
 
@@ -151,9 +151,9 @@ class LauncherPro(Launcher):
151
151
 
152
152
  if seed_info["count"]:
153
153
 
154
- succeed_count = self._db.zrem(self._todo_key, *seed_info["common"])
155
- succeed_count += self._db.done([self._todo_key, self._done_key], *seed_info["succeed"])
156
- failed_count = self._db.done([self._todo_key, self._fail_key], *seed_info["failed"])
154
+ succeed_count = int(self._db.zrem(self._todo_key, *seed_info["common"]) or 0)
155
+ succeed_count += int(self._db.done([self._todo_key, self._done_key], *seed_info["succeed"]) or 0)
156
+ failed_count = int(self._db.done([self._todo_key, self._fail_key], *seed_info["failed"]) or 0)
157
157
 
158
158
  if failed_count:
159
159
  self.statistics(self._statistics_fail_key, failed_count)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 1.2.23
3
+ Version: 1.2.25
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -21,8 +21,8 @@ cobweb/exceptions/oss_db_exception.py,sha256=iP_AImjNHT3-Iv49zCFQ3rdLnlvuHa3h2BX
21
21
  cobweb/launchers/__init__.py,sha256=qMuVlQcjErVK67HyKFZEsXf_rfZD5ODjx1QucSCKMOM,114
22
22
  cobweb/launchers/launcher.py,sha256=SK4f3Fpuv-QMMriHruXGQ1sh1lxT1DZ2PdG0p2wAzNw,6978
23
23
  cobweb/launchers/launcher_air.py,sha256=KAk_M8F3029cXYe7m4nn3Nzyi89lbxJ2cqZjqW8iZ0E,2832
24
- cobweb/launchers/launcher_api.py,sha256=doJ17v6DXiLB-xTfWK1giQ4MNRzuhFUpLXx7Ec7r9zg,8702
25
- cobweb/launchers/launcher_pro.py,sha256=2JdN4khAFGBWLXDKaWknjG72XBhfTAnwtrgVmkF0K3M,8653
24
+ cobweb/launchers/launcher_api.py,sha256=Ih8f5xDcFlGBn6VSnlrpxcchMB48ugsj2NTWYgGYWfY,8669
25
+ cobweb/launchers/launcher_pro.py,sha256=NBJstQuB0o_jMiySJ14lk0Y3WAxxiScaQvXa1qtTSo4,8683
26
26
  cobweb/pipelines/__init__.py,sha256=zSUsGtx6smbs2iXBXvYynReKSgky-3gjqaAtKVnA_OU,105
27
27
  cobweb/pipelines/base_pipeline.py,sha256=fYnWf79GmhufXpcnMa3te18SbmnVeYLwxfyo-zLd9CY,1577
28
28
  cobweb/pipelines/loghub_pipeline.py,sha256=cjPO6w6UJ0jNw2fVvdX0BCdlm58T7dmYXlxzXOBpvfY,1027
@@ -33,8 +33,8 @@ cobweb/utils/__init__.py,sha256=vBtZTy3EfRE0MmH43URhmr7nw6_oOWTEbGOM9xR_9o8,78
33
33
  cobweb/utils/bloom.py,sha256=vng-YbKgh9HbtpAWYf_nkUSbfVTOj40aqUUejRYlsCU,1752
34
34
  cobweb/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
35
35
  cobweb/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
36
- cobweb_launcher-1.2.23.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
37
- cobweb_launcher-1.2.23.dist-info/METADATA,sha256=qnhBqjrdIuXM7fRz3vOV_jwFLydD5eoe1QJ88bG_yMk,6510
38
- cobweb_launcher-1.2.23.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
- cobweb_launcher-1.2.23.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
40
- cobweb_launcher-1.2.23.dist-info/RECORD,,
36
+ cobweb_launcher-1.2.25.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
37
+ cobweb_launcher-1.2.25.dist-info/METADATA,sha256=I2DC0dBkKiIKUNmGWA2JNMaQhhydniKDJT3gteawVOg,6510
38
+ cobweb_launcher-1.2.25.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
+ cobweb_launcher-1.2.25.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
40
+ cobweb_launcher-1.2.25.dist-info/RECORD,,