Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some delay on loop on initial setup or when indexers are offline #148

Closed
sondreb opened this issue Jun 2, 2022 · 0 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@sondreb
Copy link
Member

sondreb commented Jun 2, 2022

On the initial setup and/or when indexers are offline, the indexer process will run in a loop without any delays. This takes up a lot of compute resources on the devices.

The issue is that get indexer URL will return empty URL if there are no indexers online, and the completed status is set to false, so it will continue to run until indexers is online. We can either sleep for a while, or we can have some limit on how many loops is acceptable. Main issue with counting loops, is that completed is used for very large wallets and is an indicator that scan is not complete yet, so we don't want the value to be too low and create issues for large wallets.

@sondreb sondreb added the enhancement New feature or request label Jun 2, 2022
@sondreb sondreb added this to the Release 1 milestone Jun 2, 2022
sondreb added a commit that referenced this issue Jun 2, 2022
@sondreb sondreb closed this as completed in 9172716 Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant