Will --stop-grace-period help to like this behavior of a container?

Hello,

I would like to have as a result of this behavior. While I upgrade a service I would like to remove from DNS (hide for access) a container but stop or kill it with delay. It needs to have some time to store data and don’t receive new data.