Local cache on shutdown
Issue #30
resolved
When client shuts down and restarts, all information on flags is lost. It would be much better, if the client would save them locally and load them on the next start to restore the state of collected flags.
In case of a normal shutdown this is easy, but in case of an unusual shutdown (especially a SIGTERM), we might want to find a way to preserve this list as well. Suggestions on this are appreciated
Comments (3)
-
repo owner -
reporter - changed status to resolved
-
reporter Note: Fuck signals. Just don't kill my sweet client, it can very well handle itself.
- Log in to comment
How about creating a seperate script which acts like a redis-server (so that you do not have any redis-dependencies) and will cache the flags until they are submitted?
Edit: Since all signals except SIGKILL can be catched, a simple "write to file" should be enough. Nobody should sigkill the client ^^