@@ -353,8 +353,12 @@ class TaskBlueprint(NamedCommon):
classTaskRelationDraft(BasicCommon):
selection_doc=JSONField(help_text='Filter for selecting dataproducts from the output role.')
dataformat=ForeignKey('Dataformat',null=False,on_delete=PROTECT,help_text='Selected data format to use. One of (MS, HDF5).')
producer=ForeignKey('TaskDraft',related_name='produced_by',on_delete=CASCADE,help_text='Task Draft that has the output connector. NOTE: The producer does typically, but not necessarily, belong to the same Scheduling Unit (or even the same Project) as the consumer.')
consumer=ForeignKey('TaskDraft',related_name='consumed_by',on_delete=CASCADE,help_text='Task Draft that has the input connector.')
# caveat: it might look like producer has an incorrect related_name='consumed_by'. But it really is correct, denends on the way you look at it
producer=ForeignKey('TaskDraft',related_name='consumed_by',on_delete=CASCADE,help_text='Task Draft that has the output connector. NOTE: The producer does typically, but not necessarily, belong to the same Scheduling Unit (or even the same Project) as the consumer.')
# caveat: it might look like consumer has an incorrect related_name='produced_by'. But it really is correct, denends on the way you look at it
consumer=ForeignKey('TaskDraft',related_name='produced_by',on_delete=CASCADE,help_text='Task Draft that has the input connector.')
input=ForeignKey('TaskConnector',related_name='inputs_task_relation_draft',on_delete=CASCADE,help_text='Input connector of consumer.')
output=ForeignKey('TaskConnector',related_name='outputs_task_relation_draft',on_delete=CASCADE,help_text='Output connector of producer.')
selection_template=ForeignKey('TaskRelationSelectionTemplate',on_delete=CASCADE,help_text='Schema used for selection_doc.')# todo: 'schema'?
...
...
@@ -369,8 +373,12 @@ class TaskRelationDraft(BasicCommon):
classTaskRelationBlueprint(BasicCommon):
selection_doc=JSONField(help_text='Filter for selecting dataproducts from the output role.')
dataformat=ForeignKey('Dataformat',null=False,on_delete=PROTECT,help_text='Selected data format to use.')
producer=ForeignKey('TaskBlueprint',related_name='produced_by',on_delete=CASCADE,help_text='Task Blueprint that has the output connector.')
consumer=ForeignKey('TaskBlueprint',related_name='consumed_by',on_delete=CASCADE,help_text='Task Blueprint that has the input connector.')
# caveat: it might look like producer has an incorrect related_name='consumed_by'. But it really is correct, denends on the way you look at it
producer=ForeignKey('TaskBlueprint',related_name='consumed_by',on_delete=CASCADE,help_text='Task Blueprint that has the output connector.')
# caveat: it might look like consumer has an incorrect related_name='produced_by'. But it really is correct, denends on the way you look at it
consumer=ForeignKey('TaskBlueprint',related_name='produced_by',on_delete=CASCADE,help_text='Task Blueprint that has the input connector.')
input=ForeignKey('TaskConnector',related_name='inputs_task_relation_blueprint',on_delete=CASCADE,help_text='Input connector of consumer.')
output=ForeignKey('TaskConnector',related_name='outputs_task_relation_blueprint',on_delete=CASCADE,help_text='Output connector of producer.')
draft=ForeignKey('TaskRelationDraft',on_delete=CASCADE,related_name='related_task_relation_blueprint',help_text='Task Relation Draft which this work request instantiates.')