MCPcopy Index your code
hub / github.com/flyteorg/flyte / getStatus

Method getStatus

flytestdlib/utils/auto_refresh_example_test.go:35–41  ·  view source on GitHub ↗

advance the status to next, and return

(id string)

Source from the content-addressed store, hash-verified

33
34// advance the status to next, and return
35func (f *ExampleService) getStatus(id string) *ExampleCacheItem {
36 if _, ok := f.jobStatus[id]; !ok {
37 f.jobStatus[id] = ExampleStatusStarted
38 }
39 f.jobStatus[id] = ExampleStatusSucceeded
40 return &ExampleCacheItem{f.jobStatus[id], id}
41}
42
43func ExampleNewAutoRefreshCache() {
44 // 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