cobweb-launcher 1.1.5__py3-none-any.whl → 1.1.6__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.

@@ -140,22 +140,23 @@ class LauncherPro(Launcher):
140
140
  while not self._stop.is_set():
141
141
  queue_not_empty_count = 0
142
142
  pooling_wait_seconds = 30
143
- if not self._db.zcard(self._todo):
144
- for q in self.__LAUNCHER_QUEUE__.values():
145
- if q.length != 0:
146
- queue_not_empty_count += 1
147
- if self._pause.is_set():
148
- self._pause.clear()
149
- self._execute()
150
- elif queue_not_empty_count == 0:
151
- pooling_wait_seconds = 3
152
- check_emtpy_times += 1
153
- else:
154
- check_emtpy_times = 0
155
- if check_emtpy_times > 2:
156
- check_emtpy_times = 0
157
- self.__DOING__ = {}
158
- self._pause.set()
143
+ for q in self.__LAUNCHER_QUEUE__.values():
144
+ if q.length != 0:
145
+ queue_not_empty_count += 1
146
+ if self._pause.is_set():
147
+ self._pause.clear()
148
+ self._execute()
149
+ elif queue_not_empty_count == 0:
150
+ pooling_wait_seconds = 3
151
+ check_emtpy_times += 1
152
+ else:
153
+ check_emtpy_times = 0
154
+
155
+ if not self._db.zcard(self._todo) and check_emtpy_times > 2:
156
+ check_emtpy_times = 0
157
+ self.__DOING__ = {}
158
+ self._pause.set()
159
+
159
160
  if not self._pause.is_set():
160
161
  logger.info(LogTemplate.launcher_pro_polling.format(
161
162
  task=self.task,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -18,15 +18,15 @@ cobweb/exceptions/__init__.py,sha256=E9SHnJBbhD7fOgPFMswqyOf8SKRDrI_i25L0bSpohvk
18
18
  cobweb/exceptions/oss_db_exception.py,sha256=iP_AImjNHT3-Iv49zCFQ3rdLnlvuHa3h2BXApgrOYpA,636
19
19
  cobweb/launchers/__init__.py,sha256=qwlkEJVri7dvCgi45aX3lqAmQS0HrPicAipDvH75kew,69
20
20
  cobweb/launchers/launcher.py,sha256=O6Kkvqk-0kOxJom8YO9zW18e_2eMYrA5RTS9Xy4TW5k,5665
21
- cobweb/launchers/launcher_pro.py,sha256=3B7JjT2wk-q_Q9yCIw36OIS0eGVNBFRV5F6WLzH4FKo,6620
21
+ cobweb/launchers/launcher_pro.py,sha256=2N_GU3PVv1CP-ZBPOhh2xAm_KkPHx4SVC0JPW1t3JB4,6550
22
22
  cobweb/pipelines/__init__.py,sha256=xanY-Z1d7zRR5JhCdW2htzrAywnKBkigiaUlTFa6of0,80
23
23
  cobweb/pipelines/base_pipeline.py,sha256=fYnWf79GmhufXpcnMa3te18SbmnVeYLwxfyo-zLd9CY,1577
24
24
  cobweb/pipelines/loghub_pipeline.py,sha256=cjPO6w6UJ0jNw2fVvdX0BCdlm58T7dmYXlxzXOBpvfY,1027
25
25
  cobweb/utils/__init__.py,sha256=JTE4sBfHnKHhD6w9Auk0MIT7O9BMOamCeryhlHNx3Zg,47
26
26
  cobweb/utils/oss.py,sha256=uD5aN2oVYImit3amE6TjxWMaTAcbAh9dCnpIQhf4M9Q,3238
27
27
  cobweb/utils/tools.py,sha256=bVd3iRGBvwhohQAH7AXTTjbmQ54Z35K0O-fatEyhePU,1249
28
- cobweb_launcher-1.1.5.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
29
- cobweb_launcher-1.1.5.dist-info/METADATA,sha256=F5vvm0pngBeivTOVQ_srp-7epa3gHadaovtottKAIko,1245
30
- cobweb_launcher-1.1.5.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
31
- cobweb_launcher-1.1.5.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
32
- cobweb_launcher-1.1.5.dist-info/RECORD,,
28
+ cobweb_launcher-1.1.6.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
29
+ cobweb_launcher-1.1.6.dist-info/METADATA,sha256=U7bo6LBCeF5nZMKm7zUNyUHt40cNvlkhr2lgK7LSkQQ,1245
30
+ cobweb_launcher-1.1.6.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
31
+ cobweb_launcher-1.1.6.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
32
+ cobweb_launcher-1.1.6.dist-info/RECORD,,