Ask for preemptible instances.
authorTom Clegg <tom@tomclegg.ca>
Mon, 1 Mar 2021 20:53:44 +0000 (15:53 -0500)
committerTom Clegg <tom@tomclegg.ca>
Mon, 1 Mar 2021 20:53:44 +0000 (15:53 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

arvados.go

index ec09637ae9217ed19d42fae2a3a484f41682d223..48cfad7ccdd6f37e3381f0bb54d1170031babc5c 100644 (file)
@@ -262,6 +262,10 @@ func (runner *arvadosContainerRunner) RunContext(ctx context.Context) (string, e
                        "runtime_constraints": rc,
                        "priority":            runner.Priority,
                        "state":               arvados.ContainerRequestStateCommitted,
+                       "scheduling_parameters": arvados.SchedulingParameters{
+                               Preemptible: true,
+                               Partitions:  []string{},
+                       },
                },
        })
        if err != nil {