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

cobweb/bbb.py CHANGED
@@ -123,7 +123,7 @@ class Seed:
123
123
 
124
124
  @property
125
125
  def format_seed(self):
126
- return json.dumps(self.dict_seed, ensure_ascii=False)
126
+ return json.dumps(self.dict_seed, ensure_ascii=False, separators=(",", ":"))
127
127
 
128
128
 
129
129
  class DBItem:
@@ -128,7 +128,12 @@ class Storer:
128
128
 
129
129
  while not stop.is_set():
130
130
 
131
- if last.is_set() or self.queue.length >= self.length:
131
+ storer_length = self.queue.length
132
+ if not storer_length:
133
+ time.sleep(5)
134
+ continue
135
+
136
+ if last.is_set() or storer_length >= self.length:
132
137
  seeds, data_list = [], []
133
138
 
134
139
  while True:
@@ -123,7 +123,12 @@ class Storer:
123
123
 
124
124
  while not stop.is_set():
125
125
 
126
- if last.is_set() or self.queue.length >= self.length:
126
+ storer_length = self.queue.length
127
+ if not storer_length:
128
+ time.sleep(5)
129
+ continue
130
+
131
+ if last.is_set() or storer_length >= self.length:
127
132
  seeds, data_list = [], []
128
133
 
129
134
  for _ in range(self.length):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.1.10
3
+ Version: 0.1.12
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -1,5 +1,5 @@
1
1
  cobweb/__init__.py,sha256=fIg4v2yl3NHiCSli9EHU1WnMTLqEfDAvOgRtmULwu5A,227
2
- cobweb/bbb.py,sha256=Sckof5zgzWEz2tIjs6xxoLkrL7wUdogPw3AetlXIDUo,5684
2
+ cobweb/bbb.py,sha256=zKeCeBVFQfhEv6M8CCktUTM7tXDZmAu6ZN0-ET44pUY,5707
3
3
  cobweb/constant.py,sha256=WApaB3mn9cTDzvoCd7UcejO5T5wsCrxzn7D-uBTcIpg,462
4
4
  cobweb/decorators.py,sha256=eYQI9rddPVJihAlomLTmbtQhIOzPw8dCrOFpxAq2pLY,318
5
5
  cobweb/interface.py,sha256=um_k2AAQl1HTOvfUlq914DjkpfZVwt2m1B65EpPKrmE,802
@@ -24,16 +24,16 @@ cobweb/distributed/models.py,sha256=PUQokXMGD-H4A99nX7qYA395Ul6IsWGruMTVa05nswY,
24
24
  cobweb/equip/__init__.py,sha256=UVhm9xl9kj1Ez_9Sf5ElRvkeI5pTpXatWfIHJbXAFx4,240
25
25
  cobweb/equip/distributed/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  cobweb/equip/distributed/launcher.py,sha256=1LzxibGXWR20XpXawakiRpEMaa9yfaj2rFSKnmEwjFc,7475
27
- cobweb/equip/distributed/models.py,sha256=pIQSac-WuaKsFGrT1ImOMqYoD2zySTkOK1ZLtHw33d8,4815
27
+ cobweb/equip/distributed/models.py,sha256=5an5JRPvALFB4C-c6gY3KIttgeb4T66uLGwQr7fJJdw,4947
28
28
  cobweb/equip/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  cobweb/equip/single/launcher.py,sha256=dMd1IJg__yiFnxy3Q6EueebPllN8zyTDwfC0OjEhRf4,6702
30
- cobweb/equip/single/models.py,sha256=kf6ZSlcY9XVdDx6WqGahO4uuGCAdHK9ayeJ6Kuu3JiE,4447
30
+ cobweb/equip/single/models.py,sha256=iZhsnf1OAq5L6pIn06iaaWlheS28M5Q2GgM55s58aX0,4579
31
31
  cobweb/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  cobweb/single/launcher.py,sha256=IoJbn87j7t7Pib_FxoWZmmX8asXOqNGb-9ospw6EYJI,7302
33
33
  cobweb/single/models.py,sha256=UXcxr_Quok91k82plaqbj4deB-UBCWo14WCo6SS5L_o,4247
34
34
  cobweb/single/nest.py,sha256=49K6KQ934INfPrWQsrq9rIFpQauLbLGOFbDaHvoQzOk,5015
35
- cobweb_launcher-0.1.10.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
36
- cobweb_launcher-0.1.10.dist-info/METADATA,sha256=qGzb9Ib-SW1Tnh4m5LreEwqnSoyO0DxhP7DujQHRsIE,1220
37
- cobweb_launcher-0.1.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
38
- cobweb_launcher-0.1.10.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
39
- cobweb_launcher-0.1.10.dist-info/RECORD,,
35
+ cobweb_launcher-0.1.12.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
36
+ cobweb_launcher-0.1.12.dist-info/METADATA,sha256=-eWHCdhACz_STCzabluxlwByZ59OlcOKZnmYhjUlvB8,1220
37
+ cobweb_launcher-0.1.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
38
+ cobweb_launcher-0.1.12.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
39
+ cobweb_launcher-0.1.12.dist-info/RECORD,,