Open hostingnuggets opened 7 years ago
Right now the tasks instance method (http://www.rubydoc.info/gems/docker-swarm-api/Docker/Swarm/Swarm#tasks-instance_method) of the Swarm class does not take any parameters and as such returns every tasks in a swarm.
It would be a good idea to add a parameter to the tasks method in order to filter by any valid filter criteria (e.g. service=<service name>) as defined in the Docker API here: https://docs.docker.com/engine/api/v1.27/#tag/Task
service=<service name>
@mikejmoore / @mmoore1915 any news on this issue?
Right now the tasks instance method (http://www.rubydoc.info/gems/docker-swarm-api/Docker/Swarm/Swarm#tasks-instance_method) of the Swarm class does not take any parameters and as such returns every tasks in a swarm.
It would be a good idea to add a parameter to the tasks method in order to filter by any valid filter criteria (e.g.
service=<service name>
) as defined in the Docker API here: https://docs.docker.com/engine/api/v1.27/#tag/Task