11170: Treat the squeue/scancel calls as files instead of treating them as processes...
[arvados.git] / services / crunch-run / crunchrun.go
index d42fe0baae5de647c96b5ac0bfeb775b602f09fa..3b3cdf1c14a872dacbc76b5679db9970609907dd 100644 (file)
@@ -726,6 +726,7 @@ func (runner *ContainerRunner) CaptureOutput() error {
        manifestText = manifest.Extract(".", ".").Text
        err = runner.ArvClient.Create("collections",
                arvadosclient.Dict{
+                       "ensure_unique_name": true,
                        "collection": arvadosclient.Dict{
                                "is_trashed":    true,
                                "name":          "output for " + runner.Container.UUID,
@@ -830,6 +831,7 @@ func (runner *ContainerRunner) CommitLogs() error {
        var response arvados.Collection
        err = runner.ArvClient.Create("collections",
                arvadosclient.Dict{
+                       "ensure_unique_name": true,
                        "collection": arvadosclient.Dict{
                                "is_trashed":    true,
                                "name":          "logs for " + runner.Container.UUID,