Closed johnbradley closed 5 years ago
Reconsidering passing version# when creating a new workflow version.
I'm going to leave the workflow version number as a passed in field. For production use we want to base this version on part of the git release tag, but for development just incrementing it is fine.
Perhaps combined_tag would be a better field name here. (I do think workflow_tag is a good name for this concept)
So would we change workflow_tag
to combined_tag
in the JobTemplate file as well?
New Process for creating a job
User finds a workflow version
User lists the workflows via GET
/api/v2/workflows/
Example response:User lists the workflow_versions via GET
/api/v2/workflow-versions/
Example response:User finds a workflow configuration
User lists the workflow configurations that match the chose workflow via GET
/api/v2/workflow-configurations/?workflow=1
Example response:User determines a tag that describes the desired job
User combines a workflow version tag with a workflow configuration tag. User combines workflow version tag for
wes-gatk4-preprocessing/v1
and workflow configuration tag forb37-human-xgen
. So the resulting tag iswes-gatk4-preprocessing/v1/b37-human-xgen
.User inits a job-template based on a tag that describes the desired job
User sends POST
/api/v2/job-templates/init/
with payload{"workflow_tag": "wes-gatk4-preprocessing/v1/b37-human-xgen"}
Example response:User finds a share group
User fetches share groups via GET
/api/v2/share-groups/
Example response:User fills this id for the create job endpoint as
share_group
. User can optionally lookup a vm strategy via GET to/api/v2/vm-strategies/
asjob_vm_strategy
User fills in the job template and creates a job
User sends POST
/api/v2/job-templates/create-job/
with edited payload frominit-job-file
.Modifications after review
Using
tag
instead ofworkflow_tag
. Removed share_group option for creating jobs. Workflow configuration only hastag
field now.