diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
| -rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index 1f253ffb22..8c271ffa94 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
| @@ -48,12 +48,14 @@ class BuildRequest(models.Model): | |||
| 48 | REQ_QUEUED = 1 | 48 | REQ_QUEUED = 1 |
| 49 | REQ_INPROGRESS = 2 | 49 | REQ_INPROGRESS = 2 |
| 50 | REQ_COMPLETED = 3 | 50 | REQ_COMPLETED = 3 |
| 51 | REQ_FAILED = 4 | ||
| 51 | 52 | ||
| 52 | REQUEST_STATE = ( | 53 | REQUEST_STATE = ( |
| 53 | (REQ_CREATED, "created"), | 54 | (REQ_CREATED, "created"), |
| 54 | (REQ_QUEUED, "queued"), | 55 | (REQ_QUEUED, "queued"), |
| 55 | (REQ_INPROGRESS, "in progress"), | 56 | (REQ_INPROGRESS, "in progress"), |
| 56 | (REQ_COMPLETED, "completed"), | 57 | (REQ_COMPLETED, "completed"), |
| 58 | (REQ_FAILED, "failed"), | ||
| 57 | ) | 59 | ) |
| 58 | 60 | ||
| 59 | project = models.ForeignKey(Project) | 61 | project = models.ForeignKey(Project) |
| @@ -84,4 +86,8 @@ class BRTarget(models.Model): | |||
| 84 | target = models.CharField(max_length=100) | 86 | target = models.CharField(max_length=100) |
| 85 | task = models.CharField(max_length=100, null=True) | 87 | task = models.CharField(max_length=100, null=True) |
| 86 | 88 | ||
| 87 | 89 | class BRError(models.Model): | |
| 90 | req = models.ForeignKey(BuildRequest) | ||
| 91 | errtype = models.CharField(max_length=100) | ||
| 92 | errmsg = models.TextField() | ||
| 93 | traceback = models.TextField() | ||
