MCPcopy
hub / github.com/flyteorg/flyte / getStatus

Method getStatus

flytestdlib/cache/auto_refresh_example_test.go:49–58  ·  view source on GitHub ↗

advance the status to next, and return

(id string)

Source from the content-addressed store, hash-verified

47
48// advance the status to next, and return
49func (f *ExampleService) getStatus(id string) *ExampleCacheItem {
50 f.lock.Lock()
51 defer f.lock.Unlock()
52 if _, ok := f.jobStatus[id]; !ok {
53 f.jobStatus[id] = ExampleStatusStarted
54 }
55
56 f.jobStatus[id] = ExampleStatusSucceeded
57 return &ExampleCacheItem{f.jobStatus[id], id}
58}
59
60func ExampleNewAutoRefreshCache() {
61 // This auto-refresh cache can be used for cases where keys are created by caller but processed by

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected