17816: Add --runtime-engine to crunch-dispatch-local and crunch-dispatch-slurm
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.go
index a5899ce8a7cc0809a57b64a9588d8e227846c274..2f2f013c714a0be6bf863cbf8329efae62e616b6 100644 (file)
@@ -255,6 +255,7 @@ func (disp *Dispatcher) submit(container arvados.Container, crunchRunCommand []s
        // append() here avoids modifying crunchRunCommand's
        // underlying array, which is shared with other goroutines.
        crArgs := append([]string(nil), crunchRunCommand...)
+       crArgs = append(crArgs, "--runtime-engine="+disp.cluster.Containers.RuntimeEngine)
        crArgs = append(crArgs, container.UUID)
        crScript := strings.NewReader(execScript(crArgs))