chiadog icon indicating copy to clipboard operation
chiadog copied to clipboard

Persist daily stats data

Open kanasite opened this issue 2 years ago • 1 comments

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

kanasite avatar Jul 20 '21 12:07 kanasite

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.

martomi avatar Jul 29 '21 19:07 martomi