aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/bldcontrol/models.py')
-rw-r--r--lib/toaster/bldcontrol/models.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py
index 1f253ffb2..8c271ffa9 100644
--- a/lib/toaster/bldcontrol/models.py
+++ b/lib/toaster/bldcontrol/models.py
@@ -48,12 +48,14 @@ class BuildRequest(models.Model):
REQ_QUEUED = 1
REQ_INPROGRESS = 2
REQ_COMPLETED = 3
+ REQ_FAILED = 4
REQUEST_STATE = (
(REQ_CREATED, "created"),
(REQ_QUEUED, "queued"),
(REQ_INPROGRESS, "in progress"),
(REQ_COMPLETED, "completed"),
+ (REQ_FAILED, "failed"),
)
project = models.ForeignKey(Project)
@@ -84,4 +86,8 @@ class BRTarget(models.Model):
target = models.CharField(max_length=100)
task = models.CharField(max_length=100, null=True)
-
+class BRError(models.Model):
+ req = models.ForeignKey(BuildRequest)
+ errtype = models.CharField(max_length=100)
+ errmsg = models.TextField()
+ traceback = models.TextField()