X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9481ff4a22314c0d5acffe78fbc7595278414e6f..4257184a0fd276af7e1741dda8a7468a30b4a9c6:/lib/dispatchcloud/worker/runner.go diff --git a/lib/dispatchcloud/worker/runner.go b/lib/dispatchcloud/worker/runner.go index 9cd1d8d6bc..e819a6036b 100644 --- a/lib/dispatchcloud/worker/runner.go +++ b/lib/dispatchcloud/worker/runner.go @@ -35,11 +35,8 @@ type remoteRunner struct { // newRemoteRunner returns a new remoteRunner. Caller should ensure // Close() is called to release resources. func newRemoteRunner(uuid string, wkr *worker) *remoteRunner { - // In order to stay compatible with recent dev/experimental - // versions of crunch-run, we need to pass a map with string - // values only, so we JSON-encode the instance type - // record. Once worker images are updated we can skip this and - // just pass {"InstanceType": wkr.instType}. + // Send the instance type record as a JSON doc so crunch-run + // can log it. var instJSON bytes.Buffer enc := json.NewEncoder(&instJSON) enc.SetIndent("", " ")