mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Implement model/view/launch paradigm for shard/split job templates
This commit is contained in:
committed by
AlanCoding
parent
89c2038ea3
commit
0b1776098b
20
awx/main/migrations/0048_v340_split_jobs.py
Normal file
20
awx/main/migrations/0048_v340_split_jobs.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-08-14 13:43
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0047_v330_activitystream_instance'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='jobtemplate',
|
||||
name='job_shard_count',
|
||||
field=models.IntegerField(blank=True,
|
||||
default=0,
|
||||
help_text='The number of jobs to split into at runtime. Will cause the Job Template to launch a workflow.'),
|
||||
),
|
||||
]
|
||||
26
awx/main/migrations/0049_v340_add_job_template.py
Normal file
26
awx/main/migrations/0049_v340_add_job_template.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.11 on 2018-08-14 16:04
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0048_v340_split_jobs'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='workflowjob',
|
||||
name='job_template',
|
||||
field=models.ForeignKey(blank=True,
|
||||
default=None,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name='sharded_jobs', to='main.JobTemplate'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user