Merge pull request #3558 from ryanpetrello/index-job-status

index unified_job.status

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-03-29 18:14:53 +00:00 committed by GitHub
commit 71718ee2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-03-29 16:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0064_v350_analytics_state'),
]
operations = [
migrations.AlterField(
model_name='unifiedjob',
name='status',
field=models.CharField(choices=[('new', 'New'), ('pending', 'Pending'), ('waiting', 'Waiting'), ('running', 'Running'), ('successful', 'Successful'), ('failed', 'Failed'), ('error', 'Error'), ('canceled', 'Canceled')], db_index=True, default='new', editable=False, max_length=20),
),
]

View File

@ -618,6 +618,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
choices=STATUS_CHOICES,
default='new',
editable=False,
db_index=True,
)
failed = models.BooleanField(
default=False,