From 92cef0b8110f4f1c5bec4c7d256da38de638bfc4 Mon Sep 17 00:00:00 2001 From: Massimo Date: Tue, 15 Jan 2013 15:54:29 -0600 Subject: [PATCH] scheduler patch, thanks Niphlod --- VERSION | 2 +- gluon/scheduler.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7c49317e..616d55a6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.01.15.13.25.43 +Version 2.4.1-alpha.2+timestamp.2013.01.15.15.53.29 diff --git a/gluon/scheduler.py b/gluon/scheduler.py index a3da2d35..a866acc5 100644 --- a/gluon/scheduler.py +++ b/gluon/scheduler.py @@ -556,7 +556,7 @@ class Scheduler(MetaScheduler): self.die() def wrapped_assign_tasks(self, db): - db.commit() # ?don't know if it's useful, let's be completely sure + db.commit() #db.commit() only for Mysql x = 0 while x < 10: try: @@ -571,6 +571,7 @@ class Scheduler(MetaScheduler): def wrapped_pop_task(self): db = self.db + db.commit() #another nifty db.commit() only for Mysql x = 0 while x < 10: try: