MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / getServerTasksCallback

Function getServerTasksCallback

pkg/cmd/task/wait/wait.go:212–230  ·  view source on GitHub ↗
(octopus *client.Client)

Source from the content-addressed store, hash-verified

210}
211
212func getServerTasksCallback(octopus *client.Client) ServerTasksCallback {
213 return func(taskIDs []string) ([]*tasks.Task, error) {
214 query := tasks.TasksQuery{
215 IDs: taskIDs,
216 }
217
218 resourceTasks, err := octopus.Tasks.Get(query)
219 if err != nil {
220 return nil, err
221 }
222
223 tasks, err := resourceTasks.GetAllPages(octopus.Sling())
224 if err != nil {
225 return nil, err
226 }
227
228 return tasks, nil
229 }
230}
231
232func getTaskDetailsCallback(octopus *client.Client) TaskDetailsCallback {
233 return func(taskID string) (*tasks.TaskDetailsResource, error) {

Callers 1

NewWaitOpsFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected