Author: remi
Date: 2009-08-01 13:57:35 +0200 (Sat, 01 Aug 2009)
New Revision: 5263

Modified:
   software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
Log:
* Fixed a time derivation in the scheduler

Modified: 
software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 
2009-08-01 11:56:51 UTC (rev 5262)
+++ software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 
2009-08-01 11:57:35 UTC (rev 5263)
@@ -449,11 +449,11 @@
                     diff = now - taskInfo[TASK_NEXT_TIME]
                     if diff.seconds <= 30:
                         taskInfo[TASK_OBJECT].execute(self.__appGlobals)
-                        time.sleep(1.0)
                     if nextTime != None:
                         tasksToAdd.append([nextTime, taskInfo[TASK_OBJECT],
                             taskInfo[TASK_ID], taskInfo[TASK_NAME]])
                     else:
+                        print "!! TASK Timeout"
                         tasksFinished.append(taskInfo[TASK_OBJECT])
             for taskInfo in tasksToRemove:
                 self.__tasksToExecuteStack.remove(taskInfo)
@@ -467,5 +467,5 @@
                 self.storeTasks()
                 if self.__onTasksLoadedCallback != None:
                     self.__onTasksLoadedCallback()
-            time.sleep(1.0)
+            time.sleep(0.5)
         self.__setTasksLoaded(False)


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to