MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Invalidate

Method Invalidate

pkg/controller/rtctrl/runtimeinfo.go:106–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (info *RuntimeInfo) Invalidate() {
107 info.invokeLock.Lock()
108 defer info.invokeLock.Unlock()
109
110 logs.Infof("invalidate runtime %s", info.RuntimeID)
111
112 if info.Abnormal {
113 return
114 }
115
116 info.Abnormal = true
117 info.AbnormalTimes++
118}
119
120// updateLastAccessTime
121func (info *RuntimeInfo) updateLastAccessTime() {

Callers 7

tryGetRuntimeMethod · 0.95
InvalidateRuntimeMethod · 0.80
coolDownMethod · 0.80
rebornMethod · 0.80
TestEventOccupyFunction · 0.80
TestEventMergedFunction · 0.80
TestEventMarkFunction · 0.80

Calls 2

InfofFunction · 0.92
LockMethod · 0.80

Tested by 3

TestEventOccupyFunction · 0.64
TestEventMergedFunction · 0.64
TestEventMarkFunction · 0.64