You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The removeService method within the Spotify's docker-client functions as expected for service removal. However, it seems not to adhere to the stop-grace-period parameter, preventing the server from executing necessary cleanup steps before the service termination.
How to reproduce
Start a Docker Swarm cluster with multiple nodes.
Deploy a service using the docker service create command and set a stop-grace-period of 60 seconds for example.
Execute the following code using the removeService method in the Docker Client library:
Observe that the service is immediately removed without waiting the 'stop-grace-period'.
Expected behavior
When utilizing removeDockerSwarmService to remove a service in Docker Swarm, it should honor the stop-grace-period parameter, allowing the server to complete essential cleanup operations before terminating the service.
Actual behavior
The service is immediately removed without honoring the stop-grace-period, potentially hindering the server from completing crucial cleanup tasks.
Software:
docker version: '24.0.5'
Spotify's docker-client version: '6.0.4'
Full backtrace
[Not applicable]
The text was updated successfully, but these errors were encountered:
The responsibility of honoring the stop-grace-period is on the Docker swarm side. A docker client (whether is this or just a plain HTTP call) will return immediately after a docker service rm.
If you think it somehow differently, it would be a very bad API design from the Docker folks, if the client could actually affect this.
Description
The
removeService
method within the Spotify's docker-client functions as expected for service removal. However, it seems not to adhere to thestop-grace-period
parameter, preventing the server from executing necessary cleanup steps before the service termination.How to reproduce
docker service create
command and set astop-grace-period
of 60 seconds for example.removeService
method in the Docker Client library:Expected behavior
When utilizing
removeDockerSwarmService
to remove a service in Docker Swarm, it should honor thestop-grace-period
parameter, allowing the server to complete essential cleanup operations before terminating the service.Actual behavior
The service is immediately removed without honoring the
stop-grace-period
, potentially hindering the server from completing crucial cleanup tasks.Software:
docker version
: '24.0.5'Full backtrace
The text was updated successfully, but these errors were encountered: