cobweb-launcher 3.2.18__py3-none-any.whl → 3.2.20__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.
@@ -72,7 +72,7 @@ class Distributor(threading.Thread):
72
72
 
73
73
  elif isinstance(item, Seed):
74
74
  # todo: 新种子日志
75
- item.seed.params.insert_time = time.time()
75
+ item.params.insert_time = time.time()
76
76
  self.task_queue.add_task(
77
77
  task_id=item.sid, data=item, status=Status.INSERT,
78
78
  priority=item.params.priority, parent_id=task_id
@@ -140,16 +140,16 @@ class RedisScheduler(Scheduler):
140
140
 
141
141
  if self.pause.is_set():
142
142
  execute_time = int(time.time()) - start_time
143
- if not self.task_model and execute_time > self.before_scheduler_wait_seconds:
144
- logger.info("Done! ready to close thread...")
145
- self.stop.set()
146
- elif redis_todo_len:
143
+ if redis_todo_len and self.task_queue.length() > 0:
147
144
  logger.info(
148
145
  f"Recovery {self.task} task run!"
149
146
  f"Todo seeds count: {redis_todo_len}"
150
147
  f", queue length: {redis_seed_count}"
151
148
  )
152
149
  self.pause.clear()
150
+ elif not self.task_model and execute_time > self.before_scheduler_wait_seconds:
151
+ logger.info("Done! ready to close thread...")
152
+ self.stop.set()
153
153
  else:
154
154
  logger.info("Pause! waiting for resume...")
155
155
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 3.2.18
3
+ Version: 3.2.20
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -18,7 +18,7 @@ cobweb/db/redis_db.py,sha256=X7dUpW50QcmRPjYlYg7b-fXF_fcjuRRk3DBx2ggetXk,7687
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=6_v2jd2sgj6YnOB1nPKiYBskuXVb5xpQnq2YaDGJgQ8,100
21
- cobweb/launchers/distributor.py,sha256=Ay44iPDNOlrZIW1wgNa4aijRNZsuLLfBz-QlFYXEKDs,5667
21
+ cobweb/launchers/distributor.py,sha256=1ooOFqWqZLCn7zIDoraDDGJm9l7aAWzygz-UNUSqxpI,5662
22
22
  cobweb/launchers/launcher.py,sha256=Shb6o6MAM38d32ybW2gY6qpGmhuiV7jo9TDh0f7rud8,5694
23
23
  cobweb/launchers/uploader.py,sha256=QwJOmG7jq2T5sRzrT386zJ0YYNz-hAv0i6GOpoEaRdU,2075
24
24
  cobweb/log_dots/__init__.py,sha256=F-3sNXac5uI80j-tNFGPv0lygy00uEI9XfFvK178RC4,55
@@ -30,15 +30,15 @@ cobweb/pipelines/pipeline_csv.py,sha256=TFqxqgVUqkBF6Jott4zd6fvCSxzG67lpafRQtXPw
30
30
  cobweb/pipelines/pipeline_loghub.py,sha256=zwIa_pcWBB2UNGd32Cu-i1jKGNruTbo2STdxl1WGwZ0,1829
31
31
  cobweb/schedulers/__init__.py,sha256=LEya11fdAv0X28YzbQTeC1LQZ156Fj4cyEMGqQHUWW0,49
32
32
  cobweb/schedulers/scheduler.py,sha256=Of-BjbBh679R6glc12Kc8iugeERCSusP7jolpCc1UMI,1740
33
- cobweb/schedulers/scheduler_with_redis.py,sha256=iaImkTldr203Xm5kbBWPJ2fLUUe2mgcmUoDUQYfn5iM,7370
33
+ cobweb/schedulers/scheduler_with_redis.py,sha256=yz6anTM3eNOQRP5WtlY1Kx6KaVgKgyR_FwvXtlydGqQ,7403
34
34
  cobweb/utils/__init__.py,sha256=HV0rDW6PVpIVmN_bKquKufli15zuk50tw1ZZejyZ4Pc,173
35
35
  cobweb/utils/bloom.py,sha256=A8xqtHXp7jgRoBuUlpovmq8lhU5y7IEF0FOCjfQDb6s,1855
36
36
  cobweb/utils/decorators.py,sha256=ZwVQlz-lYHgXgKf9KRCp15EWPzTDdhoikYUNUCIqNeM,1140
37
37
  cobweb/utils/dotting.py,sha256=e0pLEWB8sly1xvXOmJ_uHGQ6Bbw3O9tLcmUBfyNKRmQ,10633
38
38
  cobweb/utils/oss.py,sha256=wmToIIVNO8nCQVRmreVaZejk01aCWS35e1NV6cr0yGI,4192
39
39
  cobweb/utils/tools.py,sha256=14TCedqt07m4z6bCnFAsITOFixeGr8V3aOKk--L7Cr0,879
40
- cobweb_launcher-3.2.18.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
41
- cobweb_launcher-3.2.18.dist-info/METADATA,sha256=bdZ30kO73t3cqozkOyfhr0iEmrDDxPxiqVR9J3oITbE,6115
42
- cobweb_launcher-3.2.18.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
43
- cobweb_launcher-3.2.18.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
44
- cobweb_launcher-3.2.18.dist-info/RECORD,,
40
+ cobweb_launcher-3.2.20.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
41
+ cobweb_launcher-3.2.20.dist-info/METADATA,sha256=GrOWnfJGxsO3LPt3_xWpb2ySDzRrupBYngzOpZ7NSPs,6115
42
+ cobweb_launcher-3.2.20.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
43
+ cobweb_launcher-3.2.20.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
44
+ cobweb_launcher-3.2.20.dist-info/RECORD,,