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

@@ -433,6 +433,14 @@ class WorkflowJob(UnifiedJob, WorkflowJobOptions, SurveyJobMixin, JobNotificatio
default=None,
on_delete=models.SET_NULL,
)
job_template = models.ForeignKey(
'JobTemplate',
related_name='sharded_jobs',
blank=True,
null=True,
default=None,
on_delete=models.SET_NULL,
)
@property
def workflow_nodes(self):