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

Method Remove

backend/server/services/task_runner.go:82–90  ·  view source on GitHub ↗

Remove FIXME ...

(taskId uint64)

Source from the content-addressed store, hash-verified

80
81// Remove FIXME ...
82func (rt *RunningTask) Remove(taskId uint64) (context.CancelFunc, errors.Error) {
83 rt.mu.Lock()
84 defer rt.mu.Unlock()
85 if d, ok := rt.tasks[taskId]; ok {
86 delete(rt.tasks, taskId)
87 return d.Cancel, nil
88 }
89 return nil, errors.NotFound.New(fmt.Sprintf("task with id %d not found", taskId))
90}
91
92var runningTasks RunningTask
93

Callers 7

CancelTaskFunction · 0.80
ReloadBlueprintsFunction · 0.80
reloadBlueprintFunction · 0.80
runTaskStandaloneFunction · 0.80
DownloadLogsFunction · 0.80
prepareSyncMethod · 0.80
RemoveLineMethod · 0.80

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected