This may be a feature request. But I was curious if there was a way to conduct a command to be called, after a health check passes, but before the retiring container is removed.
For example if your running KeyDB, it saves to the persistent volume every ~5 minutes or 100 changes.
If a deploy occurs, does this mean that I don’t have the latest copy of data (5 minute window), because it was not written to the mounted volume?
In the KeyDB docs they say you either need to call SAVE or SHUTDOWN to ensure persistence.
Is there a place to hook in and ensure either can be called before ending lifecycle?