From 94c151d54621ed4491262582f2cba717d8dc5ae9 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 8 Mar 2024 02:01:42 +0300 Subject: [PATCH] dev@locazia: fix indexer status --- app/core/background/indexer_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core/background/indexer_service.py b/app/core/background/indexer_service.py index 1de0596..1d52fe4 100644 --- a/app/core/background/indexer_service.py +++ b/app/core/background/indexer_service.py @@ -138,7 +138,6 @@ async def indexer_loop(platform_found: bool, seqno: int) -> [bool, int]: make_log("Indexer", f"Item indexed: {item_content_hash_str}", level="info") last_known_index += 1 - await send_status("indexer", f"working (seqno={seqno}, height={last_known_index})") return platform_found, seqno @@ -152,6 +151,9 @@ async def main_fn(): except BaseException as e: make_log("Indexer", f"Error: {e}" + '\n' + traceback.format_exc(), level="error") + if platform_found: + await send_status("indexer", f"working (seqno={seqno})") + await asyncio.sleep(5) seqno += 1