cobweb-launcher 1.2.45__py3-none-any.whl → 1.2.47__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 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
- if self.queue.length < 1000:
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 1.2.45
3
+ Version: 1.2.47
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -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=vxK44tq_eD1uIYrkMzesUF43ZgFiu1zay3WZGTSBSx4,1898
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.45.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
41
- cobweb_launcher-1.2.45.dist-info/METADATA,sha256=T46vEQNn9zyk9trC1O10bT5YBi7rNOh7M11ErhYsJ_0,6510
42
- cobweb_launcher-1.2.45.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
43
- cobweb_launcher-1.2.45.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
44
- cobweb_launcher-1.2.45.dist-info/RECORD,,
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,,