go icon indicating copy to clipboard operation
go copied to clipboard

exp/lighthorizon: Add the ability to gracefully shut down.

Open Shaptic opened this issue 3 years ago • 0 comments

Reference: https://github.com/stellar/go/pull/4615#discussion_r982765560.

We should add signal handling to both the main service and other background goroutines. As it stands today, if you Ctrl+C the web server while it's doing normal caching or during its cache preload phase, you risk cache corruption because a ledger would be partially-written to disk.

Shaptic avatar Sep 30 '22 16:09 Shaptic