summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2011-01-04 13:33:21 -0500
committerBill Peck <bpeck@redhat.com>2011-01-04 13:33:21 -0500
commitb94e0f928ba91164cfbd9a9dcc98c03d425c4efc (patch)
tree94ac900df93c5d6698f478d08be393ef2007ff6a
parent9107fe357a01c1560c8c174775bbf21754e34793 (diff)
disable cache due to session issues:
2011-01-04 13:17:04,068 beakerd DEBUG Entering new_recipes routine 2011-01-04 13:17:04,126 beakerd INFO recipe ID 3907 matches one system, bumping priority 2011-01-04 13:17:04,135 beakerd ERROR Failed to commit due to :Object 'TaskStatus@0xa0c7410' is already attached to session '168516432' (this is '166154896') 2011-01-04 13:17:04,194 beakerd ERROR Failed to commit due to :Object 'TaskStatus@0xa0c7410' is already attached to session '168516432' (this is '166154896') 2011-01-04 13:17:04,195 beakerd DEBUG Exiting new_recipes routine
-rw-r--r--Server/bkr/server/model.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Server/bkr/server/model.py b/Server/bkr/server/model.py
index 8548d5f..7f52298 100644
--- a/Server/bkr/server/model.py
+++ b/Server/bkr/server/model.py
@@ -1067,7 +1067,6 @@ class Permission(object):
return isinstance(other,self.__class__) and self.id != other.id
@classmethod
- @cache
def by_name(cls, permission_name):
return cls.query.filter(cls.permission_name == permission_name).one()
@@ -1200,7 +1199,6 @@ class Group(object):
return isinstance(other,self.__class__) and self.id != other.id
@classmethod
- @cache
def by_name(cls, name):
return cls.query.filter_by(group_name=name).one()
@@ -2389,7 +2387,6 @@ class SystemType(SystemObject):
return [type.type for type in all_types]
@classmethod
- @cache
def by_name(cls, systemtype):
return cls.query.filter_by(type=systemtype).one()
@@ -2469,7 +2466,6 @@ class SystemStatus(SystemObject):
@classmethod
- @cache
def by_name(cls, systemstatus):
return cls.query.filter_by(status=systemstatus).one()
@@ -3306,7 +3302,6 @@ class TaskStatus(object):
return cls.query().order_by(TaskStatus.severity.desc()).first()
@classmethod
- @cache
def by_name(cls, status_name):
return cls.query().filter_by(status=status_name).one()
@@ -3335,7 +3330,6 @@ class TaskStatus(object):
class TaskResult(object):
@classmethod
- @cache
def by_name(cls, result_name):
return cls.query().filter_by(result=result_name).one()
@@ -3828,7 +3822,6 @@ class Product(object):
return cls.query().filter(cls.id == id).one()
@classmethod
- @cache
def by_name(cls, name):
return cls.query().filter(cls.name == name).one()
@@ -5565,7 +5558,6 @@ class Task(MappedObject):
return isinstance(other,self.__class__) and self.id != other.id
@classmethod
- @cache
def by_name(cls, name):
return cls.query.filter_by(name=name).one()
@@ -5679,7 +5671,6 @@ class TaskType(MappedObject):
return isinstance(other,self.__class__) and self.id != other.id
@classmethod
- @cache
def by_name(cls, type):
return cls.query.filter_by(type=type).one()
@@ -5695,7 +5686,6 @@ class TaskPackage(MappedObject):
return isinstance(other,self.__class__) and self.id != other.id
@classmethod
- @cache
def by_name(cls, package):
return cls.query.filter_by(package=package).one()