1 |
vip-ire |
1.1 |
diff -up plague-0.4.5.8/server/BuildMaster.py.keepjobs plague-0.4.5.8/server/BuildMaster.py |
2 |
|
|
--- plague-0.4.5.8/server/BuildMaster.py.keepjobs 2011-04-09 09:55:35.645857362 -0600 |
3 |
|
|
+++ plague-0.4.5.8/server/BuildMaster.py 2011-04-09 09:56:01.285336069 -0600 |
4 |
|
|
@@ -421,9 +421,9 @@ class BuildMaster(threading.Thread): |
5 |
|
|
def _cleanup_db(self): |
6 |
|
|
expiretime = int(time.time()-14*24*3600) |
7 |
|
|
print "DB cleanup: %d" % expiretime |
8 |
|
|
- self._cursor.execute("DELETE FROM jobs WHERE (status='failed' OR status='finished') AND endtime<=%d" % expiretime) |
9 |
|
|
- self._dbcx.commit() |
10 |
|
|
- |
11 |
|
|
+ #self._cursor.execute("DELETE FROM jobs WHERE (status='failed' OR status='finished') AND endtime<=%d" % expiretime) |
12 |
|
|
+ #self._dbcx.commit() |
13 |
|
|
+ |
14 |
|
|
def _finish_signed(self): # only for Fedora Extras pushscript |
15 |
|
|
print "Checking needsign" |
16 |
|
|
self._cursor.execute("SELECT * FROM jobs WHERE status='needsign'") |