From 3987dca6e7ab4f2fa78c5c68cda55f6deb20ae03 Mon Sep 17 00:00:00 2001 From: ddamiron <ddamiron@sii.fr> Date: Wed, 3 Jul 2019 14:16:39 +0200 Subject: [PATCH] clean-up reindexer --- main.py | 2 +- workers/reindexer.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index e0327a4..a12a906 100644 --- a/main.py +++ b/main.py @@ -187,7 +187,7 @@ def delete_dataset_from_dest_index(the_rabbit, the_cfg, the_uuid): uuid_prefix='meta', info='no info', loglevel='INFO', - progress_ratio=0.2 + progress_ratio=0.1 ) the_rabbit.publish_log(log_message=log_message.__dict__) # ------------------------------------------------------------ diff --git a/workers/reindexer.py b/workers/reindexer.py index 90f3ccb..75fb6aa 100644 --- a/workers/reindexer.py +++ b/workers/reindexer.py @@ -42,7 +42,7 @@ def create_sampling_task(cfg, channel, uuid): uuid_prefix='full', info=uuid, loglevel='INFO', - progress_ratio=0.4 + progress_ratio=0.8 ) json_body = json.dumps(log_message.__dict__) @@ -207,7 +207,7 @@ def on_msg_callback(channel, method, properties, body): uuid_prefix='full', info=uuid, loglevel='INFO', - progress_ratio=0.8 + progress_ratio=0.2 ) json_body = json.dumps(log_message.__dict__) @@ -273,7 +273,7 @@ def on_msg_callback(channel, method, properties, body): uuid_prefix='meta', info=uuid, loglevel='INFO', - progress_ratio=0.9 + progress_ratio=0.6 ) json_body = json.dumps(log_message.__dict__) @@ -375,7 +375,7 @@ def on_msg_callback(channel, method, properties, body): uuid_prefix='full', info=uuid, loglevel='INFO', - progress_ratio=1 + progress_ratio=0.9 ) json_body = json.dumps(log_message.__dict__) -- GitLab