Index: trunk/Ohana/src/opihi/pantasks/CheckTasks.c
===================================================================
--- trunk/Ohana/src/opihi/pantasks/CheckTasks.c	(revision 4450)
+++ trunk/Ohana/src/opihi/pantasks/CheckTasks.c	(revision 4602)
@@ -15,6 +15,8 @@
     if (GetTaskTimer(task[0].last) < task[0].exec_period) continue;
 
+    /* need to check if the current time is within valid/invalid periods */
+    if (!CheckTimeRanges (task[0].ranges, task[0].Nranges)) continue;
+
     SetCurrentTask (task[0].name);
-    fprintf (stderr, "trying task %s\n", task[0].name);
 
     /* ready to run? : run task.exec macro */
@@ -35,4 +37,5 @@
     /* reset timer on task (don't do this if Create/Submit fails)*/
     gettimeofday (&task[0].last, (void *) NULL);
+    task[0].Njobs ++;
   }
   return (TRUE);
