Index: trunk/Ohana/src/opihi/pantasks/CheckTasks.c
===================================================================
--- trunk/Ohana/src/opihi/pantasks/CheckTasks.c	(revision 10694)
+++ trunk/Ohana/src/opihi/pantasks/CheckTasks.c	(revision 11055)
@@ -18,4 +18,5 @@
     if (!CheckTimeRanges (task[0].ranges, task[0].Nranges)) continue;
     if (task[0].Nmax && (task[0].Njobs >= task[0].Nmax)) continue;
+    if (task[0].NpendingMax && (task[0].Npending >= task[0].NpendingMax)) continue;
 
     /* ready to run? : run task.exec macro */
@@ -35,4 +36,5 @@
     gettimeofday (&task[0].last, (void *) NULL);
     task[0].Njobs ++;
+    task[0].Npending ++;
 
     /* increment Nrun for inclusive ranges with Nmax */
