[tuxdroid-svn] r5263 - software_suite_v3/smart-core/smart-server/trunk/util/scheduler
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-08-01 11:57:54
|
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)
|