Implement model/view/launch paradigm for shard/split job templates

This commit is contained in:
Matthew Jones
2018-08-14 12:12:07 -04:00
committed by AlanCoding
parent 89c2038ea3
commit 0b1776098b
7 changed files with 82 additions and 6 deletions

View 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.'),
),
]

View 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'),
),
]