[ARVADOS] updated: cb05caebb2978eb19a93e9156aafba71e9aaa82a

git at public.curoverse.com git at public.curoverse.com
Tue Jul 1 12:54:49 EDT 2014


Summary of changes:
 crunch_scripts/run-command | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

       via  cb05caebb2978eb19a93e9156aafba71e9aaa82a (commit)
      from  2456d3322ba8397401d5033e6509cf0ffc59f98e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit cb05caebb2978eb19a93e9156aafba71e9aaa82a
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Tue Jul 1 12:54:46 2014 -0400

    Set success/failed flag explicitly based on return code.

diff --git a/crunch_scripts/run-command b/crunch_scripts/run-command
index a0c7cfe..aa50cde 100755
--- a/crunch_scripts/run-command
+++ b/crunch_scripts/run-command
@@ -56,7 +56,6 @@ try:
 
 except Exception as e:
     print("Caught exception {}".format(e))
-    rcode = 1
 
 finally:
     for l in links:
@@ -64,7 +63,13 @@ finally:
 
     out = arvados.CollectionWriter()
     out.write_directory_tree(".", max_manifest_depth=0)
-    arvados.current_task().set_output(out.finish())
+    outuuid = out.finish()
+    arvados.api('v1').job_tasks().update(uuid=arvados.current_task()['uuid'],
+                                         body={
+                                             'output':outuuid,
+                                             'success': (rcode == 0),
+                                             'progress':1.0
+                                         }).execute()
 
 if rcode == 0:
     os.chdir("..")

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list