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

Method deletePayload

pkg/dequeuer/async_handler.go:162–169  ·  view source on GitHub ↗
(requestID string)

Source from the content-addressed store, hash-verified

160}
161
162func (h *AsyncMessageHandler) deletePayload(requestID string) {
163 key := async.PayloadPath(h.storagePath, requestID)
164 err := h.aws.DeleteS3File(h.config.Bucket, key)
165 if err != nil {
166 h.log.Errorw("failed to delete user payload", "error", err)
167 telemetry.Error(errors.Wrap(err, "failed to delete user payload"))
168 }
169}
170
171func (h *AsyncMessageHandler) submitRequest(payload io.Reader, headers http.Header, requestID string) (interface{}, error) {
172 req, err := http.NewRequest(http.MethodPost, h.config.TargetURL, payload)

Callers 1

handleMessageMethod · 0.95

Calls 4

PayloadPathFunction · 0.92
ErrorFunction · 0.92
WrapFunction · 0.92
DeleteS3FileMethod · 0.80

Tested by

no test coverage detected