From 5ebe85892f7edfeb69adbce7294989084da62402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Fri, 19 Jul 2024 12:35:42 -0300 Subject: [PATCH] add spot-price to api docs --- machine_types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/machine_types.go b/machine_types.go index 7e647dd..9d2c088 100644 --- a/machine_types.go +++ b/machine_types.go @@ -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