Add combined public-info indexer - #1764
Merged
Merged
Conversation
Introduce batch/indexer_PublicInfo_Combined.py to orchestrate TokenList, PublicAccountList and (optionally) CompanyList processors with centralized scheduling and error handling. Move individual indexer scripts into batch/sub_indexers/ and adapt them to sub-processor API (add async sync_new_logs, remove standalone main loops and per-file scheduling). Update bin scripts (run_indexer.sh, healthcheck_indexer.sh) to start the combined indexer, and adjust tests to import from the new sub_indexers paths. This consolidates startup, centralizes logging/error handling, and simplifies per-indexer responsibilities.
Add brief inline comments to Company, PublicAccount, and Token list indexer processors to document the main steps: fetching from the configured URL, checking response digest for differences, and refreshing DB data by deleting existing entries and inserting the new list. Files updated: batch/sub_indexers/indexer_Company_List.py, indexer_PublicInfo_PublicAccountList.py, indexer_PublicInfo_TokenList.py. Improves readability and documents the update flow.
Change IndexerProcessor protocol to use a synchronous process() method and update run_processor to call processor.process() (remove await). Remove redundant async sync_new_logs wrappers from Company_List, PublicAccountList, and TokenList processors so they expose only process(). This standardizes the processor API for synchronous scheduled execution.
YoshihitoAso
marked this pull request as ready for review
February 16, 2026 08:31
Coverage Report •
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purplesmoke05
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the batch indexer processes for company, public account, and token lists by modularizing them into sub-indexers and introducing a new combined orchestrator.
📌 Description
✅ Related Issues
None
🔄 Changes
Major refactoring and architecture changes:
indexer_PublicInfo_Combined.pythat asynchronously schedules and runs the company, public account, and token list sub-indexers, centralizing process management and error handling.batch/sub_indexers/directory, renaming the files for clarity and modularity.📌 Checklist