Author: remi
Date: 2009-06-29 11:06:48 +0200 (Mon, 29 Jun 2009)
New Revision: 4929

Modified:
   software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py
Log:
* force to wait 1 second between tasks execution

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-06-29 09:05:32 UTC (rev 4928)
+++ software_suite_v3/smart-core/smart-server/trunk/util/scheduler/Scheduler.py 
2009-06-29 09:06:48 UTC (rev 4929)
@@ -447,8 +447,9 @@
                     tasksToRemove.append(taskInfo)
                     nextTime = taskInfo[TASK_OBJECT].getNextExecuteTime()
                     diff = now - taskInfo[TASK_NEXT_TIME]
-                    if diff.seconds <= 10:
+                    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]])


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to