MCPcopy Index your code
hub / github.com/apache/devlake / CancelTask

Function CancelTask

backend/server/services/task.go:168–175  ·  view source on GitHub ↗

CancelTask FIXME ...

(taskId uint64)

Source from the content-addressed store, hash-verified

166
167// CancelTask FIXME ...
168func CancelTask(taskId uint64) errors.Error {
169 cancel, err := runningTasks.Remove(taskId)
170 if err != nil {
171 return err
172 }
173 cancel()
174 return nil
175}
176
177// RunTasksStandalone run tasks in parallel
178func RunTasksStandalone(parentLogger log.Logger, taskIds []uint64) errors.Error {

Callers 1

CancelPipelineFunction · 0.85

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected