| 505 | } |
| 506 | |
| 507 | func (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 | |
| 517 | func (controller *Controller) invocation(ctx *InvokeContext) { |
| 518 | if ctx.RunOptions.RecommendedOptions.Features.EnableMetrics { |