[ARVADOS] updated: 863d2d4c2bfb9139f7b224d85a85b3416bc943c5

git at public.curoverse.com git at public.curoverse.com
Fri Aug 28 11:05:40 EDT 2015


Summary of changes:
 sdk/python/arvados/__init__.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

       via  863d2d4c2bfb9139f7b224d85a85b3416bc943c5 (commit)
      from  4f5836306e2c9cb475f0513394249f5fce8d3d8c (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 863d2d4c2bfb9139f7b224d85a85b3416bc943c5
Author: Bryan Cosca <bcosc at curoverse.com>
Date:   Fri Aug 28 11:05:35 2015 -0400

    flailing 8.28 11.05

diff --git a/sdk/python/arvados/__init__.py b/sdk/python/arvados/__init__.py
index e622102..a028992 100644
--- a/sdk/python/arvados/__init__.py
+++ b/sdk/python/arvados/__init__.py
@@ -219,10 +219,9 @@ class JobTask(object):
     def __init__(self, parameters=dict(), runtime_constraints=dict()):
         print "init jobtask %s %s" % (parameters, runtime_constraints)
 
-class job_setup:
-    @retry_method
-    def __init__(self, num_retries=5):
-        self.num_retries = num_retries
+class job_setup():
+    def __init__(self, num_retries=2):
+        self.num_retries = num_retries if num_retries is not None else 0
 
     @staticmethod
     @retry_method
@@ -254,11 +253,11 @@ class job_setup:
                         'input':task_input
                         }
                     }
-                api_client.job_tasks().create(body=new_task_attrs).execute(num_retries)
+                api_client.job_tasks().create(body=new_task_attrs).execute(num_retries=num_retries)
         if and_end_task:
             api_client.job_tasks().update(uuid=current_task()['uuid'],
                                        body={'success':True}
-                                       ).execute(num_retries)
+                                       ).execute(num_retries=num_retries)
             exit(0)
 
     @staticmethod

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list