MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetMaxStopDelay

Method GetMaxStopDelay

api/v1/cluster_funcs.go:740–745  ·  view source on GitHub ↗

GetMaxStopDelay get the amount of time PostgreSQL has to stop

()

Source from the content-addressed store, hash-verified

738
739// GetMaxStopDelay get the amount of time PostgreSQL has to stop
740func (cluster *Cluster) GetMaxStopDelay() int32 {
741 if cluster.Spec.MaxStopDelay > 0 {
742 return cluster.Spec.MaxStopDelay
743 }
744 return 1800
745}
746
747// GetSmartShutdownTimeout is used to ensure that smart shutdown timeout is a positive integer
748func (cluster *Cluster) GetSmartShutdownTimeout() int32 {

Callers 3

GetRestartTimeoutMethod · 0.95
buildInstanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected