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

Method checkJob

downloader/download.go:339–348  ·  view source on GitHub ↗
(req *request)

Source from the content-addressed store, hash-verified

337}
338
339func (d *Downloader) checkJob(req *request) (*downloadJobInfo, error) {
340 jInfo, err := dlStore.getJob(req.id)
341 if err != nil {
342 debug.Assert(errors.Is(err, errJobNotFound))
343 err := cmn.NewErrNotFound("%s: download job %q", d.t, req.id)
344 req.writeErrResp(err, http.StatusNotFound)
345 return nil, err
346 }
347 return jInfo, nil
348}
349
350func (d *Downloader) Snap() cluster.XactSnap { return d.DemandBase.ExtSnap() }

Callers 3

handleRemoveMethod · 0.80
handleAbortMethod · 0.80
handleStatusMethod · 0.80

Calls 5

AssertFunction · 0.92
NewErrNotFoundFunction · 0.92
getJobMethod · 0.80
IsMethod · 0.80
writeErrRespMethod · 0.80

Tested by

no test coverage detected