cobweb-launcher 1.2.46__py3-none-any.whl → 1.2.48__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.
- cobweb/utils/dotting.py +8 -4
- {cobweb_launcher-1.2.46.dist-info → cobweb_launcher-1.2.48.dist-info}/METADATA +1 -1
- {cobweb_launcher-1.2.46.dist-info → cobweb_launcher-1.2.48.dist-info}/RECORD +6 -6
- {cobweb_launcher-1.2.46.dist-info → cobweb_launcher-1.2.48.dist-info}/LICENSE +0 -0
- {cobweb_launcher-1.2.46.dist-info → cobweb_launcher-1.2.48.dist-info}/WHEEL +0 -0
- {cobweb_launcher-1.2.46.dist-info → cobweb_launcher-1.2.48.dist-info}/top_level.txt +0 -0
cobweb/utils/dotting.py
CHANGED
@@ -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(
|
@@ -34,11 +34,11 @@ cobweb/schedulers/scheduler_api.py,sha256=pFEdS1H4zuzxwMhCV-G7CoLz-rEOPv4EVo3xZU
|
|
34
34
|
cobweb/schedulers/scheduler_redis.py,sha256=E5fjc3nNld8GbUhUGT7uY4smRejj2J2ZIzp2g6lhxFM,2205
|
35
35
|
cobweb/utils/__init__.py,sha256=Ev2LZZ1-S56iQYDqFZrqadizEv4Gk8Of-DraH-_WnKY,109
|
36
36
|
cobweb/utils/bloom.py,sha256=vng-YbKgh9HbtpAWYf_nkUSbfVTOj40aqUUejRYlsCU,1752
|
37
|
-
cobweb/utils/dotting.py,sha256=
|
37
|
+
cobweb/utils/dotting.py,sha256=_QsC-LCSh1QYk9XmYIWBRlRTs-E9RfqKSkkRkedV2Eo,2082
|
38
38
|
cobweb/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
|
39
39
|
cobweb/utils/tools.py,sha256=5JEaaAwYoV9Sdla2UBIJn6faUBuXmxUMagm9ck6FVqs,1253
|
40
|
-
cobweb_launcher-1.2.
|
41
|
-
cobweb_launcher-1.2.
|
42
|
-
cobweb_launcher-1.2.
|
43
|
-
cobweb_launcher-1.2.
|
44
|
-
cobweb_launcher-1.2.
|
40
|
+
cobweb_launcher-1.2.48.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
|
41
|
+
cobweb_launcher-1.2.48.dist-info/METADATA,sha256=mmjMnXGyVInW_AL8-FtVNNwvB0hyA0M3hPqlvUjsNG4,6510
|
42
|
+
cobweb_launcher-1.2.48.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
43
|
+
cobweb_launcher-1.2.48.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
|
44
|
+
cobweb_launcher-1.2.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|