MCPcopy Index your code
hub / github.com/flant/shell-operator / DeepCopyWithNewUUID

Method DeepCopyWithNewUUID

pkg/task/task.go:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102func (t *BaseTask) DeepCopyWithNewUUID() Task {
103 newTask := t.deepCopy()
104 newTask.Id = uuid.Must(uuid.NewV4()).String()
105 newTask.LogLabels[pkg.LogKeyTaskDotID] = newTask.Id
106 return newTask
107}
108
109func (t *BaseTask) GetCompactionID() string {
110 return t.compactionID

Callers

nothing calls this directly

Calls 2

deepCopyMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected