extras-buildsys/server BuildMaster.py,1.42,1.43
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Mon Nov 12 17:51:31 UTC 2007
- Previous message (by thread): rpms/bodhi/FC-6 .cvsignore, 1.2, 1.3 bodhi.spec, 1.2, 1.3 sources, 1.3, 1.4
- Next message (by thread): rpms/sip/F-8 .cvsignore,1.18,1.19 sip.spec,1.39,1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13031
Modified Files:
BuildMaster.py
Log Message:
Fix SQLite traceback. // ProgrammingError: SQLite objects created in a thread can only be used in that same thread...
Index: BuildMaster.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/BuildMaster.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- BuildMaster.py 27 Apr 2007 17:41:45 -0000 1.42
+++ BuildMaster.py 12 Nov 2007 17:51:29 -0000 1.43
@@ -63,10 +63,6 @@
self._building_jobs = {}
self._building_jobs_lock = threading.Lock()
- self._dbcx = self._db_manager.dbcx()
- self._cursor = self._dbcx.cursor()
-
- self._requeue_interrupted_jobs()
threading.Thread.__init__(self)
self.setName("BuildMaster")
@@ -394,6 +390,12 @@
def run(self):
DebugUtils.registerThreadName(self)
+
+ self._dbcx = self._db_manager.dbcx()
+ self._cursor = self._dbcx.cursor()
+
+ self._requeue_interrupted_jobs()
+
while self.should_stop == False:
# Write update status for jobs to the database
self._save_job_status()
- Previous message (by thread): rpms/bodhi/FC-6 .cvsignore, 1.2, 1.3 bodhi.spec, 1.2, 1.3 sources, 1.3, 1.4
- Next message (by thread): rpms/sip/F-8 .cvsignore,1.18,1.19 sip.spec,1.39,1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list