Documentation
¶
Overview ¶
Adapted from: https://github.com/hatchet-dev/hatchet-v1-archived/blob/3c2c13168afa1af68d4baaf5ed02c9d49c5f0323/cmd/cmdutils/interrupt.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterruptChan ¶
func InterruptChan() <-chan interface{}
func InterruptContextFromChan ¶
func InterruptContextFromChan(interruptChan <-chan interface{}) (context.Context, context.CancelFunc)
func NewInterruptContext ¶
func NewInterruptContext() (context.Context, context.CancelFunc)
func SetMemoryLimit ¶ added in v0.111.1
SetMemoryLimit sets GOMEMLIMIT to 90% of the cgroup memory limit and refreshes it every minute to follow in-place pod resizes. A GOMEMLIMIT env var takes precedence; AUTOMEMLIMIT=<ratio> changes the ratio and AUTOMEMLIMIT=off disables it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.