package
0.38.1
Repository: https://github.com/determined-ai/determined.git
Documentation: pkg.go.dev

# Functions

Acknowledge the receipt of a preemption signal.
Acknowledged returns whether a preemption signal has been acknowledged.
New initializes a Preemption and returns it.
Preempt preempts all watchers, marks us as preempted and begins the preemption deadline.
Register a preempitble to default service.
Unregister removes a preemptible from the service.
Unwatch removes a preemption watcher.
Watch sets a watcher up to listen for preemption signals and returns it.

# Variables

ErrPreemptionDisabled indicates that an alloction is either non-preemptible or not running.

# Structs

Preemptible represents the preemption status of an allocation.
Watcher contains a channel which can be polled for a preemption signal.

# Type aliases

TimeoutFn is called when preemption deadlines are exceeded.