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

Log estimated time remaining when indexing #151

Open
smcclellan opened this issue May 25, 2023 · 6 comments
Open

Log estimated time remaining when indexing #151

smcclellan opened this issue May 25, 2023 · 6 comments
Labels
good first issue Good for newcomers icebox

Comments

@smcclellan
Copy link
Contributor

Logging for the indexing process currently only lists the latest block mined:

05/19/2023, 07:15:43 AM | Dequeuing block #790460 for processing (# blocks inboxed: 0) |  
05/19/2023, 07:21:21 AM | Dequeuing block #790461 for processing (# blocks inboxed: 0) |  
05/19/2023, 07:37:10 AM | Dequeuing block #790462 for processing (# blocks inboxed: 0) |  
05/19/2023, 08:08:15 AM | Dequeuing block #790463 for processing (# blocks inboxed: 0) |  
05/22/2023, 08:55:13 AM | Dequeuing block #790895 for processing (# blocks inboxed: 1) |  
05/22/2023, 08:55:35 AM | Dequeuing block #790896 for processing (# blocks inboxed: 0) |

We often field questions about how much longer this process will take. The ask here is to add an estimated time remaining to each of these log messages.

@smcclellan smcclellan added the good first issue Good for newcomers label May 25, 2023
@smcclellan smcclellan transferred this issue from hirosystems/chainhook Aug 14, 2023
@chresko
Copy link

chresko commented Aug 21, 2023

@rafaelcr How much of a lift would this be?

@csgui
Copy link

csgui commented Aug 29, 2023

@smcclellan There were a code restructuring that removed this logging from the ordhook codebase. Check commit 452fdd8.

It seems that this issue can be closed.

@smcclellan
Copy link
Contributor Author

@csgui Is the estimated time remaining being logged now?

@csgui
Copy link

csgui commented Aug 29, 2023

@smcclellan No. The indexing only happens in the specific case of trying to repair the inscriptions db. And there is no information about the remaining time of indexing.

@csgui
Copy link

csgui commented Aug 29, 2023

@smcclellan Anyway, is still possible to add some information about the remaining blocks on the queue to be indexed.

Any information about timing to finish the indexing is not accurate since each block has different sizes and it also depends on the network/connection speed.

Probably we can also rely on the amount of transactions inside of each block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers icebox
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants
@csgui @chresko @smcclellan and others