Merge branch '19961-spot-interruption'
[arvados.git] / lib / dispatchcloud / worker / runner.go
index 29c4b8e0a36a3be2a721e1bc509335817e86842c..ac039272cf9c5b5374c6a9dd60462b0b9e2a684c 100644 (file)
@@ -63,6 +63,9 @@ func newRemoteRunner(uuid string, wkr *worker) *remoteRunner {
                configData.Cluster = wkr.wp.cluster
                configData.KeepBuffers = bufs * wkr.instType.VCPUs
        }
+       if wkr.wp.cluster.Containers.CloudVMs.Driver == "ec2" && wkr.instType.Preemptible {
+               configData.EC2SpotCheck = true
+       }
        configJSON, err := json.Marshal(configData)
        if err != nil {
                panic(err)