()
| 73 | } |
| 74 | |
| 75 | func (as *PFStateController) Stop() { |
| 76 | if atomic.LoadInt32(&as.AutoscalingRunning) != 0 { |
| 77 | as.StopCh <- struct{}{} |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func (as *PFStateController) scalingCycle(isScaleFromZero bool) (stopped bool) { |
| 82 | desiredScale := as.ScalingMetadata.KnativeScaling(isScaleFromZero) |