cobweb-launcher 1.2.8__py3-none-any.whl → 1.2.10__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/launchers/launcher.py +1 -1
- cobweb/pipelines/pipeline.py +26 -18
- {cobweb_launcher-1.2.8.dist-info → cobweb_launcher-1.2.10.dist-info}/METADATA +1 -1
- {cobweb_launcher-1.2.8.dist-info → cobweb_launcher-1.2.10.dist-info}/RECORD +7 -7
- {cobweb_launcher-1.2.8.dist-info → cobweb_launcher-1.2.10.dist-info}/LICENSE +0 -0
- {cobweb_launcher-1.2.8.dist-info → cobweb_launcher-1.2.10.dist-info}/WHEEL +0 -0
- {cobweb_launcher-1.2.8.dist-info → cobweb_launcher-1.2.10.dist-info}/top_level.txt +0 -0
cobweb/launchers/launcher.py
CHANGED
cobweb/pipelines/pipeline.py
CHANGED
|
@@ -34,26 +34,34 @@ class Pipeline(threading.Thread, ABC):
|
|
|
34
34
|
|
|
35
35
|
def run(self):
|
|
36
36
|
while not self._stop.is_set():
|
|
37
|
-
|
|
38
|
-
if status:
|
|
37
|
+
if not self._upload.length:
|
|
39
38
|
time.sleep(self.wait_seconds)
|
|
39
|
+
continue
|
|
40
|
+
if self._upload.length < self.upload_size:
|
|
41
|
+
time.sleep(self.wait_seconds)
|
|
42
|
+
status = True
|
|
40
43
|
data_info, seeds = {}, []
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
try:
|
|
45
|
+
for _ in range(self.upload_size):
|
|
46
|
+
item = self._upload.pop()
|
|
47
|
+
if not item:
|
|
48
|
+
break
|
|
49
|
+
seeds.append(item.seed)
|
|
50
|
+
data = self.build(item)
|
|
51
|
+
data_info.setdefault(item.table, []).append(data)
|
|
52
|
+
for table, datas in data_info.items():
|
|
53
|
+
try:
|
|
54
|
+
self.upload(table, datas)
|
|
55
|
+
except Exception as e:
|
|
56
|
+
logger.info(e)
|
|
57
|
+
status = False
|
|
58
|
+
except Exception as e:
|
|
59
|
+
logger.info(e)
|
|
60
|
+
status = False
|
|
61
|
+
if not status:
|
|
62
|
+
for seed in seeds:
|
|
63
|
+
seed.params.seed_status = "deal model: fail"
|
|
64
|
+
self._done.push(seeds)
|
|
57
65
|
|
|
58
66
|
logger.info("upload pipeline close!")
|
|
59
67
|
|
|
@@ -18,20 +18,20 @@ cobweb/db/redis_db.py,sha256=NNI2QkRV1hEZI-z-COEncXt88z3pZN6wusKlcQzc8V4,4304
|
|
|
18
18
|
cobweb/exceptions/__init__.py,sha256=E9SHnJBbhD7fOgPFMswqyOf8SKRDrI_i25L0bSpohvk,32
|
|
19
19
|
cobweb/exceptions/oss_db_exception.py,sha256=iP_AImjNHT3-Iv49zCFQ3rdLnlvuHa3h2BXApgrOYpA,636
|
|
20
20
|
cobweb/launchers/__init__.py,sha256=af0Y6wrGX8SQZ7w7XL2sOtREjCT3dwad-uCc3nIontY,76
|
|
21
|
-
cobweb/launchers/launcher.py,sha256=
|
|
21
|
+
cobweb/launchers/launcher.py,sha256=mBpq0CmxXXv-KdXQ2x7vwOkkAvaKECLkZLGhraafkQA,5953
|
|
22
22
|
cobweb/launchers/launcher_air.py,sha256=KAk_M8F3029cXYe7m4nn3Nzyi89lbxJ2cqZjqW8iZ0E,2832
|
|
23
23
|
cobweb/launchers/launcher_pro.py,sha256=IpckN0Xl5NAPVjuq-pWbCx0RerDmYG9gZ182EDURixo,7599
|
|
24
24
|
cobweb/pipelines/__init__.py,sha256=zSUsGtx6smbs2iXBXvYynReKSgky-3gjqaAtKVnA_OU,105
|
|
25
25
|
cobweb/pipelines/base_pipeline.py,sha256=fYnWf79GmhufXpcnMa3te18SbmnVeYLwxfyo-zLd9CY,1577
|
|
26
26
|
cobweb/pipelines/loghub_pipeline.py,sha256=cjPO6w6UJ0jNw2fVvdX0BCdlm58T7dmYXlxzXOBpvfY,1027
|
|
27
|
-
cobweb/pipelines/pipeline.py,sha256=
|
|
27
|
+
cobweb/pipelines/pipeline.py,sha256=WBJnyLfSvyw0XmBMthgx3y_zwZBZS94L7FXpXPaKl8E,1983
|
|
28
28
|
cobweb/pipelines/pipeline_console.py,sha256=NEh-4zhuVAQOqwXLsqeb-rcNZ9_KXFUpL3otUTL5qBs,754
|
|
29
29
|
cobweb/pipelines/pipeline_loghub.py,sha256=xZ6D55BGdiM71WUv83jyLGbEyUwhBHLJRZoXthBxxTs,1019
|
|
30
30
|
cobweb/utils/__init__.py,sha256=JTE4sBfHnKHhD6w9Auk0MIT7O9BMOamCeryhlHNx3Zg,47
|
|
31
31
|
cobweb/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
|
|
32
32
|
cobweb/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
|
|
33
|
-
cobweb_launcher-1.2.
|
|
34
|
-
cobweb_launcher-1.2.
|
|
35
|
-
cobweb_launcher-1.2.
|
|
36
|
-
cobweb_launcher-1.2.
|
|
37
|
-
cobweb_launcher-1.2.
|
|
33
|
+
cobweb_launcher-1.2.10.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
|
|
34
|
+
cobweb_launcher-1.2.10.dist-info/METADATA,sha256=m1Gvgyfd8I-tPMoazMiUw46Aox58Nb0KHaD7Zu-nyts,6490
|
|
35
|
+
cobweb_launcher-1.2.10.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
36
|
+
cobweb_launcher-1.2.10.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
|
|
37
|
+
cobweb_launcher-1.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|