Skip to content
Snippets Groups Projects
Commit 6d5559ba authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2829: taskconnectors for copypipeline

parent 25ff1003
No related branches found
No related tags found
1 merge request!1296Resolve TMSS-2829
......@@ -722,6 +722,23 @@ def populate_connectors():
task_template_name=task_template_name,
iotype=IOType.objects.get(value=IOType.Choices.INPUT.value))
# The Copy (sub)task accepts any kinds of data, and passes it on.
task_template_name = "copy pipeline"
for output_connector_type in TaskConnectorType.objects.filter(iotype=IOType.objects.get(value=IOType.Choices.OUTPUT.value)).all():
# always create two input connectors for the specific output_connector_type.role and the any_role
any_role = Role.objects.get(value=Role.Choices.ANY.value)
for role in [output_connector_type.role, any_role]:
create_task_connector_skip_duplicate(role=role,
datatype=output_connector_type.datatype,
dataformat=output_connector_type.dataformat,
task_template_name="copy pipeline",
iotype=IOType.objects.get(value=IOType.Choices.INPUT.value))
create_task_connector_skip_duplicate(role=role,
datatype=output_connector_type.datatype,
dataformat=output_connector_type.dataformat,
task_template_name=task_template_name,
iotype=IOType.objects.get(value=IOType.Choices.OUTPUT.value))
def populate_permissions():
logger.info('Populating permissions')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment