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

Method putRuntime

pkg/controller/invoke.go:507–515  ·  view source on GitHub ↗
(ctx *InvokeContext)

Source from the content-addressed store, hash-verified

505}
506
507func (controller *Controller) putRuntime(ctx *InvokeContext) {
508 if ctx.RunOptions.RecommendedOptions.Features.EnableMetrics {
509 ctx.Metrics.StepStart(StagePutPod)
510 defer ctx.Metrics.StepDone(StagePutPod)
511 }
512 if err := ctx.Input.Runtime.Release(); err != nil {
513 ctx.Logger.Errorf("release runtime %s failed: %s", ctx.Input.Runtime.RuntimeID, err)
514 }
515}
516
517func (controller *Controller) invocation(ctx *InvokeContext) {
518 if ctx.RunOptions.RecommendedOptions.Features.EnableMetrics {

Callers 1

DoMethod · 0.95

Calls 4

StepStartMethod · 0.80
ReleaseMethod · 0.80
ErrorfMethod · 0.80
StepDoneMethod · 0.45

Tested by

no test coverage detected