Author: justi9
Date: 2009-02-23 14:13:41 -0500 (Mon, 23 Feb 2009)
New Revision: 3127
Modified:
mgmt/trunk/cumin/python/cumin/slot.py
Log:
Stop trying to consolidate dup slots, and add slot aging
Modified: mgmt/trunk/cumin/python/cumin/slot.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/slot.py 2009-02-23 15:28:19 UTC (rev 3126)
+++ mgmt/trunk/cumin/python/cumin/slot.py 2009-02-23 19:13:41 UTC (rev 3127)
@@ -11,13 +11,12 @@
strings = StringCatalog(__file__)
log = logging.getLogger("cumin.job")
+# XXX marked for death
class UniqueSlot(CuminTable):
def get_recent_sql_where(self, session):
return """
- (s.qmf_update_time =
- (select max(qmf_update_time)
- from slot as ss
- where s.name = ss.name))"""
+ s.qmf_update_time > now() - interval '60 minutes'
+ """
def do_get_items(self, session, *args):
cursor = super(UniqueSlot, self).do_get_items(session, *args)