martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
458 stars 120 forks source link

Persist daily stats data #269

Open kanasite opened 3 years ago

kanasite commented 3 years ago

Shall we persist the daily stats data to a file before the program gets shut down/killed? I find it annoying that if I restarted the process and the count went back to 0

martomi commented 3 years ago

The tricky part will be to persist the data reliably even if the program doesn't exit nominally. What if the user closes the terminal window that runs chiadog? It seems to me that it's necessary to persist the data continuously and not only before shutdown in order for it to work reliably.

If you find a good way to achieve it, that doesn't add some heavy dependencies and unnecessary complexity, I'd say why not?

But I see it as a rather nice-to-have, low priority feature.