culler

package
v0.0.0-...-1649c3f Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KERNEL_EXECUTION_STATE_IDLE     = "idle"
	KERNEL_EXECUTION_STATE_BUSY     = "busy"
	KERNEL_EXECUTION_STATE_STARTING = "starting"
)
View Source
const DEFAULT_CLUSTER_DOMAIN = "cluster.local"
View Source
const DEFAULT_CULL_IDLE_TIME = "1440" // One day
View Source
const DEFAULT_DEV = "false"
View Source
const DEFAULT_ENABLE_CULLING = "false"
View Source
const DEFAULT_IDLENESS_CHECK_PERIOD = "1"
View Source
const LAST_ACTIVITY_ANNOTATION = "notebooks.kubeflow.org/last-activity"
View Source
const STOP_ANNOTATION = "kubeflow-resource-stopped"

Variables

This section is empty.

Functions

func GetRequeueTime

func GetRequeueTime() time.Duration

func NotebookNeedsCulling

func NotebookNeedsCulling(meta metav1.ObjectMeta) bool

func SetStopAnnotation

func SetStopAnnotation(meta *metav1.ObjectMeta, m *metrics.Metrics)

func StopAnnotationIsSet

func StopAnnotationIsSet(meta metav1.ObjectMeta) bool

func UpdateNotebookLastActivityAnnotation

func UpdateNotebookLastActivityAnnotation(meta *metav1.ObjectMeta) bool

Types

type KernelStatus

type KernelStatus struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	LastActivity   string `json:"last_activity"`
	ExecutionState string `json:"execution_state"`
	Connections    int    `json:"connections"`
}

Jump to

Keyboard shortcuts

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