MCPcopy
hub / github.com/cortexlabs/cortex / inProgressKey

Function inProgressKey

pkg/operator/resources/job/cache.go:100–102  ·  view source on GitHub ↗

e.g. /jobs/ /in_progress/ /

(jobKey spec.JobKey)

Source from the content-addressed store, hash-verified

98
99// e.g. <cluster_uid>/jobs/<job_api_kind>/in_progress/<api_name>/<job_id>
100func inProgressKey(jobKey spec.JobKey) string {
101 return path.Join(allInProgressForAPIKey(jobKey.Kind, jobKey.APIName), jobKey.ID)
102}
103
104func jobKeyFromInProgressKey(s3Key string) spec.JobKey {
105 pathSplit := strings.Split(s3Key, "/")

Callers 2

DeleteInProgressFileFunction · 0.85
uploadInProgressFileFunction · 0.85

Calls 1

allInProgressForAPIKeyFunction · 0.85

Tested by

no test coverage detected