cobweb-launcher 1.2.46__tar.gz → 1.2.48__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cobweb-launcher-1.2.46/cobweb_launcher.egg-info → cobweb-launcher-1.2.48}/PKG-INFO +1 -1
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/utils/dotting.py +8 -4
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48/cobweb_launcher.egg-info}/PKG-INFO +1 -1
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/setup.py +1 -1
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/LICENSE +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/README.md +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/common_queue.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/decorators.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/item.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/log.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/request.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/response.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/base/seed.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/constant.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/crawlers/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/crawlers/base_crawler.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/crawlers/crawler.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/crawlers/file_crawler.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/db/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/db/api_db.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/db/redis_db.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/exceptions/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/exceptions/oss_db_exception.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/launchers/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/launchers/launcher.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/launchers/launcher_air.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/launchers/launcher_api.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/launchers/launcher_pro.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/pipelines/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/pipelines/pipeline.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/pipelines/pipeline_console.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/pipelines/pipeline_loghub.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/setting.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/utils/__init__.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/utils/bloom.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/utils/oss.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb/utils/tools.py +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb_launcher.egg-info/requires.txt +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb_launcher.egg-info/top_level.txt +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/setup.cfg +0 -0
- {cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/test/test.py +0 -0
@@ -37,15 +37,19 @@ class LoghubDot:
|
|
37
37
|
|
38
38
|
def build_run(self):
|
39
39
|
while True:
|
40
|
-
|
40
|
+
start_time = int(time.time())
|
41
|
+
while True:
|
42
|
+
cost_time = int(time.time()) - start_time
|
43
|
+
if self.queue.length >= 1000 or cost_time > 10:
|
44
|
+
break
|
41
45
|
time.sleep(0.5)
|
42
|
-
continue
|
43
46
|
try:
|
44
47
|
log_item_info = {}
|
45
48
|
for _ in range(1000):
|
46
|
-
|
47
|
-
if not
|
49
|
+
its = self.queue.pop()
|
50
|
+
if not its:
|
48
51
|
break
|
52
|
+
topic, item = its
|
49
53
|
log_item_info.setdefault(topic, []).append(item)
|
50
54
|
for topic, log_items in log_item_info.items():
|
51
55
|
request = PutLogsRequest(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cobweb-launcher-1.2.46 → cobweb-launcher-1.2.48}/cobweb_launcher.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|