|
@@ -8,6 +8,7 @@ import (
|
|
types "github.com/docker/docker/api/types/swarm"
|
|
types "github.com/docker/docker/api/types/swarm"
|
|
"github.com/docker/docker/daemon/cluster/convert"
|
|
"github.com/docker/docker/daemon/cluster/convert"
|
|
swarmapi "github.com/docker/swarmkit/api"
|
|
swarmapi "github.com/docker/swarmkit/api"
|
|
|
|
+ "google.golang.org/grpc"
|
|
)
|
|
)
|
|
|
|
|
|
// GetTasks returns a list of tasks matching the filter options.
|
|
// GetTasks returns a list of tasks matching the filter options.
|
|
@@ -53,7 +54,9 @@ func (c *Cluster) GetTasks(options apitypes.TaskListOptions) ([]types.Task, erro
|
|
|
|
|
|
r, err = state.controlClient.ListTasks(
|
|
r, err = state.controlClient.ListTasks(
|
|
ctx,
|
|
ctx,
|
|
- &swarmapi.ListTasksRequest{Filters: filters})
|
|
|
|
|
|
+ &swarmapi.ListTasksRequest{Filters: filters},
|
|
|
|
+ grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse),
|
|
|
|
+ )
|
|
return err
|
|
return err
|
|
}); err != nil {
|
|
}); err != nil {
|
|
return nil, err
|
|
return nil, err
|