Help us shape the future of Go! Take the 2026 Go Developer Survey

cmdutils

package
v0.112.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 6

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

func SetMemoryLimit(ctx context.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL