mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -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:
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,
|
choices=STATUS_CHOICES,
|
||||||
default='new',
|
default='new',
|
||||||
editable=False,
|
editable=False,
|
||||||
|
db_index=True,
|
||||||
)
|
)
|
||||||
failed = models.BooleanField(
|
failed = models.BooleanField(
|
||||||
default=False,
|
default=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user