cobweb-launcher 1.2.45__py3-none-any.whl → 1.2.47__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- cobweb/utils/dotting.py +6 -3
- {cobweb_launcher-1.2.45.dist-info → cobweb_launcher-1.2.47.dist-info}/METADATA +1 -1
- {cobweb_launcher-1.2.45.dist-info → cobweb_launcher-1.2.47.dist-info}/RECORD +6 -6
- {cobweb_launcher-1.2.45.dist-info → cobweb_launcher-1.2.47.dist-info}/LICENSE +0 -0
- {cobweb_launcher-1.2.45.dist-info → cobweb_launcher-1.2.47.dist-info}/WHEEL +0 -0
- {cobweb_launcher-1.2.45.dist-info → cobweb_launcher-1.2.47.dist-info}/top_level.txt +0 -0
cobweb/utils/dotting.py
CHANGED
@@ -3,7 +3,7 @@ import time
|
|
3
3
|
|
4
4
|
from aliyun.log import LogClient, LogItem, PutLogsRequest
|
5
5
|
|
6
|
-
from base import Queue, logger
|
6
|
+
from cobweb.base import Queue, logger
|
7
7
|
from cobweb import setting
|
8
8
|
|
9
9
|
|
@@ -37,9 +37,12 @@ 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):
|
@@ -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=xACGk8cLc8d2nk41exC0PFfnThJC9__ujNc-VykFk7I,2053
|
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.47.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
|
41
|
+
cobweb_launcher-1.2.47.dist-info/METADATA,sha256=mQmD2Igg-yKySo_wNt56SV-5nMOa2ECUu2FFzAecH68,6510
|
42
|
+
cobweb_launcher-1.2.47.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
43
|
+
cobweb_launcher-1.2.47.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
|
44
|
+
cobweb_launcher-1.2.47.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|