3609: Reenabled support for websockets. Now sets name of pipeline to user's command...
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 16 Oct 2014 14:51:54 +0000 (10:51 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 16 Oct 2014 14:51:54 +0000 (10:51 -0400)
sdk/python/arvados/commands/run.py

index a15a457c5e272cf85d2919d1f08955f16f7320ef..06c4bf86d037a6673f37f092c8af2132c4ed2865 100644 (file)
@@ -8,7 +8,7 @@ import os
 import stat
 import put
 import time
-#import arvados.command.ws as ws
+import arvados.commands.ws as ws
 import subprocess
 import logging
 
@@ -64,6 +64,8 @@ def main(arguments=None):
         arvrun_parser.print_help()
         return
 
+    starting_args = args.args
+
     reading_into = 2
 
     slots = [[], [], []]
@@ -196,7 +198,7 @@ def main(arguments=None):
     component["script_parameters"]["command"] = slots[2:]
 
     pipeline = {
-        "name": "",
+        "name": " ".join(starting_args),
         "components": {
             "command": component
         },
@@ -211,7 +213,7 @@ def main(arguments=None):
         api = arvados.api('v1')
         pi = api.pipeline_instances().create(body=pipeline).execute()
         print "Running pipeline %s" % pi["uuid"]
-        #ws.main(["--pipeline", pi["uuid"]])
+        ws.main(["--pipeline", pi["uuid"]])
 
 if __name__ == '__main__':
     main()