mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
index unified_job.status
this is a fairly importantj column that we join on for a number of queries throughout AWX, particularly the task scheduler and analytics
This commit is contained in:
parent
bf3473d394
commit
7ef68a03c6
20
awx/main/migrations/0065_v350_index_job_status.py
Normal file
20
awx/main/migrations/0065_v350_index_job_status.py
Normal 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),
|
||||
),
|
||||
]
|
||||
@ -618,6 +618,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
choices=STATUS_CHOICES,
|
||||
default='new',
|
||||
editable=False,
|
||||
db_index=True,
|
||||
)
|
||||
failed = models.BooleanField(
|
||||
default=False,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user