Browse Source

HUE-752 [core] Bump liboozie job timeout to 5 minutes

Romain Rigaux 13 years ago
parent
commit
a775773904

+ 1 - 1
desktop/libs/liboozie/src/liboozie/oozie_api_test.py

@@ -53,7 +53,7 @@ class OozieServerProvider(object):
     cls.shutdown = [callback]
 
   @classmethod
-  def wait_until_completion(cls, oozie_jobid, timeout=70.0, step=1):
+  def wait_until_completion(cls, oozie_jobid, timeout=300.0, step=5):
     sleep = 0
     job = cls.oozie.get_job(oozie_jobid)
     if step < 0:

+ 3 - 0
desktop/libs/liboozie/src/liboozie/types.py

@@ -283,6 +283,9 @@ class Job(object):
   def is_running(self):
     return self.status in Job.RUNNING_STATUSES
 
+  def __unicode__(self):
+    return '%s - %s' % (self.id, self.status)
+
 
 class Coordinator(Job):
   _ATTRS = [