the big merge
[nepi.git] / src / nepi / execution / ec.py
index d93ef7a..c403d79 100644 (file)
@@ -16,6 +16,8 @@
 #
 # Author: Alina Quereilhac <alina.quereilhac@inria.fr>
 
+from six import next
+
 from nepi.util import guid
 from nepi.util.parallel import ParallelRun
 from nepi.util.timefuncs import tnow, tdiffsec, stabsformat, tsformat 
@@ -587,6 +589,7 @@ class ExperimentController(object):
             
         """
         # Get next available guid
+        # xxx_next_hiccup
         guid = self._guid_generator.next(guid)
         
         # Instantiate RM
@@ -985,6 +988,7 @@ class ExperimentController(object):
         new_group = False
         if not group:
             new_group = True
+            # xxx_next_hiccup
             group = self._group_id_generator.next()
 
         if group not in self._groups:
@@ -1186,7 +1190,7 @@ class ExperimentController(object):
             try:
                 self._cond.acquire()
 
-                task = self._scheduler.next()
+                task = next(self._scheduler)
                 
                 if not task:
                     # No task to execute. Wait for a new task to be scheduled.