MCPcopy
hub / github.com/NVIDIA/aistore / setAborted

Method setAborted

downloader/infostore.go:128–135  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

126}
127
128func (is *infoStore) setAborted(id string) {
129 jInfo, err := is.getJob(id)
130 debug.AssertNoErr(err)
131 jInfo.Aborted.Store(true)
132 // NOTE: Don't set `FinishedTime` yet as we are not fully done.
133 // The job now can be removed but there's no guarantee
134 // that all tasks have been stopped and all resources were freed.
135}
136
137func (is *infoStore) delJob(id string) {
138 delete(is.jobInfo, id)

Callers 2

dispatchDownloadMethod · 0.80
handleAbortMethod · 0.80

Calls 3

getJobMethod · 0.95
AssertNoErrFunction · 0.92
StoreMethod · 0.45

Tested by

no test coverage detected