Skip to content

Commit

Permalink
add spot-price to api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra authored and matttpt committed Aug 14, 2024
1 parent 2fee701 commit 5ebe858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ type MachineRestart struct {
// * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
// * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
// * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
Policy MachineRestartPolicy `json:"policy,omitempty" enums:"no,always,on-failure"`
// * spot-price - Starts the machine only when there is capacity and the spot-price is below thet bid price.
Policy MachineRestartPolicy `json:"policy,omitempty" enums:"no,always,on-failure,spot-price"`
// When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.
MaxRetries int `json:"max_retries,omitempty"`
// GPU bid price for spot machines
Expand Down

0 comments on commit 5ebe858

Please sign in to comment.