cobweb-launcher 0.0.22__tar.gz → 0.0.24__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/PKG-INFO +1 -1
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/redis_db.py +1 -1
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/distributed/launcher.py +6 -2
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/PKG-INFO +1 -1
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/setup.py +1 -1
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/LICENSE +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/README.md +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/bbb.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/oss_db.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/scheduler/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/scheduler/default.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/scheduler/textfile.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/storer/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/storer/console.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/storer/loghub.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/storer/redis.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/db/storer/textfile.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/decorators.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/distributed/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/distributed/models.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/interface.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/log.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/setting.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/single/__init__.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/single/models.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/single/nest.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/task.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb/utils.py +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/requires.txt +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/top_level.txt +0 -0
- {cobweb-launcher-0.0.22 → cobweb-launcher-0.0.24}/setup.cfg +0 -0
@@ -158,7 +158,7 @@ class RedisDB:
|
|
158
158
|
score = -int(time.time()) + self.rs_time if heartbeat else "-inf"
|
159
159
|
|
160
160
|
keys = self.client.keys(self.storer_key % "*")
|
161
|
-
if len(keys)
|
161
|
+
if len(keys) >= storer_num:
|
162
162
|
intersection_key = self.storer_key % "intersection"
|
163
163
|
self.client.delete(intersection_key)
|
164
164
|
self.client.zinterstore(intersection_key, keys)
|
@@ -72,7 +72,7 @@ def check(stop, last, spider, scheduler, storer_list, ready_seed_length, spider_
|
|
72
72
|
)
|
73
73
|
if (
|
74
74
|
scheduler.stop and
|
75
|
-
not redis_ready_seed_length and
|
75
|
+
# not redis_ready_seed_length and
|
76
76
|
not memory_seed_queue_length and
|
77
77
|
not running_spider_thread_num
|
78
78
|
):
|
@@ -88,7 +88,11 @@ def check(stop, last, spider, scheduler, storer_list, ready_seed_length, spider_
|
|
88
88
|
storer_upload_queue_list.append(
|
89
89
|
f"{storer.__class__.__name__} storer queue length: {storer.queue.length}"
|
90
90
|
)
|
91
|
-
if
|
91
|
+
if (
|
92
|
+
storer_queue_empty and
|
93
|
+
not redis_ready_seed_length and
|
94
|
+
not redis_spider_seed_length
|
95
|
+
):
|
92
96
|
if MODEL:
|
93
97
|
log.info("waiting for push seeds...")
|
94
98
|
status = "waiting"
|
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-0.0.22 → cobweb-launcher-0.0.24}/cobweb_launcher.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|