MCPcopy Create free account
hub / github.com/cortexlabs/cortex / uploadResult

Method uploadResult

pkg/dequeuer/async_handler.go:213–216  ·  view source on GitHub ↗
(requestID string, result interface{})

Source from the content-addressed store, hash-verified

211}
212
213func (h *AsyncMessageHandler) uploadResult(requestID string, result interface{}) error {
214 key := async.ResultPath(h.storagePath, requestID)
215 return h.aws.UploadJSONToS3(result, h.config.Bucket, key)
216}
217
218func (h *AsyncMessageHandler) getHeaders(requestID string) (http.Header, error) {
219 key := async.HeadersPath(h.storagePath, requestID)

Callers 1

handleMessageMethod · 0.95

Calls 2

ResultPathFunction · 0.92
UploadJSONToS3Method · 0.80

Tested by

no test coverage detected