added jupyterhub related workflow to group created

This commit is contained in:
Marco Lettere 2022-07-14 14:39:44 +02:00
parent 18cb707053
commit b0e83cc47d
2 changed files with 43 additions and 12 deletions

View File

@ -4,7 +4,7 @@ workflows:
# - group_deleted # - group_deleted
# - user-group_created # - user-group_created
# - user-group-role_created # - user-group-role_created
# - group_created - group_created
# - invitation-accepted # - invitation-accepted
# - user-group_deleted # - user-group_deleted
# - user-group-role_deleted # - user-group-role_deleted
@ -26,7 +26,7 @@ workflows:
# - ghn_client_delete # - ghn_client_delete
# - ghn_client_remove_from_contexts # - ghn_client_remove_from_contexts
# - ghn_client_remove_from_context # - ghn_client_remove_from_context
- jupyterhub_add_serveroptions_to_context # - jupyterhub_add_serveroptions_to_context
keycloak_host: "https://accounts.dev.d4science.org/auth" keycloak_host: "https://accounts.dev.d4science.org/auth"
keycloak: "{{ keycloak_host }}/realms" keycloak: "{{ keycloak_host }}/realms"

View File

@ -526,15 +526,46 @@
} }
}, },
{ {
"name": "sub_workflow_task", "name" : "fork_subworkflows",
"taskReferenceName": "call_enable_workspace_clients_for_context", "type" : "FORK_JOIN",
"subWorkflowParam": { "taskReferenceName" : "parallel_call_subworkflows",
"name": "enable_workspace_clients_for_context" "forkTasks" : [
}, [
"inputParameters": { {
"context" : "${workflow.input.group}" "name": "sub_workflow_task",
}, "taskReferenceName": "call_enable_workspace_clients_for_context",
"type": "SUB_WORKFLOW" "subWorkflowParam": {
} "name": "enable_workspace_clients_for_context"
},
"inputParameters": {
"context" : "${workflow.input.group}"
},
"type": "SUB_WORKFLOW"
}
],
[
{
"name": "sub_workflow_task",
"taskReferenceName": "call_jupyterhub_add_serveroptions_to_context",
"subWorkflowParam": {
"name": "jupyterhub_add_serveroptions_to_context"
},
"inputParameters": {
"context" : "${workflow.input.group}"
},
"type": "SUB_WORKFLOW"
}
]
]
},
{
"name" : "join",
"type" : "JOIN",
"taskReferenceName" : "join_parallel_call_subworkflows"
"joinOn :[
"call_enable_workspace_clients_for_context",
"call_jupyterhub_add_serveroptions_to_context"
]
}
] ]
} }