trueblocks-core icon indicating copy to clipboard operation
trueblocks-core copied to clipboard

chifra scrape: do not allow running the scraper twice on the same machine with the same chain

Open tjayrush opened this issue 3 years ago • 1 comments

Our C++ code used to protect against running the scraper twice (as well as protecting against running chifra export when the scraper was writing the database). That got lost in the new GoLang code.

tjayrush avatar Sep 06 '22 14:09 tjayrush

Also, do not start chifra init if the scrape is running. Totally mess it up you will.

tjayrush avatar Sep 11 '22 03:09 tjayrush

To reproduce:

In one window, run chifra scrape --chain sepolia

Open another window and run chifra scrape --chain sepolia. The second one should not start, but it does, and it reeks havok.

tjayrush avatar Sep 06 '23 00:09 tjayrush