dev@locazia: fix indexer status

This commit is contained in:
user 2024-03-08 02:01:42 +03:00
parent 3173161d14
commit 94c151d546
1 changed files with 3 additions and 1 deletions

View File

@ -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