Skip to content

Commit

Permalink
feat: add in support for workflow engine and version when submitting …
Browse files Browse the repository at this point in the history
…a request. Closes #181 (#182)

* Add in support for workflow enginer and version when submitting a request.

* Expand out Workflow Engine version to by array of strings.

* Update RunRequest.yaml

* Add in workflow_engine and version to the run spec.

* Fix typo

* Fix for consitency

* Add more clarity about engine and version

* Update description

* Address changes requested.

* Fix indentation.

* Resolve reorganization of yaml's into 1 single yaml.

* Remove preempted with accidental merge.

* Add required parameter for:
- workflow_type
- workflow_type_version
- workflow_url
  • Loading branch information
vsmalladi authored Mar 28, 2023
1 parent de618a8 commit cc46bc6
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion openapi/workflow_execution_service.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ tags:
x-displayName: WorkflowTypeVersion
description: |
<SchemaDefinition schemaRef="#/components/schemas/WorkflowTypeVersion" />
- name: workflowengineversion_model
x-displayName: WorkflowEngineVersion
description: |
<SchemaDefinition schemaRef="#/components/schemas/WorkflowEngineVersion" />
x-tagGroups:
- name: Overview
tags:
Expand All @@ -112,6 +116,7 @@ x-tagGroups:
- log_model
- defaultworkflowengineparameter_model
- workflowtypeversion_model
- workflowengineversion_model
paths:
/service-info:
get:
Expand Down Expand Up @@ -227,6 +232,10 @@ paths:
The `workflow_type_version` is the version of the workflow language submitted and must be one supported by this WES instance.
The `workflow_engine` is the engine that supports the workflow_type and must be supported by this WES instance.
The `workflow_engine_version` is the version of workflow engine and must be supported by this WES instance.
See the `RunRequest` documentation for details about other fields.
operationId: RunWorkflow
parameters: [ ]
Expand All @@ -245,6 +254,10 @@ paths:
type: string
tags:
type: string
workflow_engine:
type: string
workflow_engine_version:
type: string
workflow_engine_parameters:
type: string
workflow_url:
Expand Down Expand Up @@ -458,7 +471,7 @@ components:
workflow_engine_versions:
type: object
additionalProperties:
type: string
$ref: '#/components/schemas/WorkflowEngineVersion'
default_workflow_engine_parameters:
type: array
items:
Expand Down Expand Up @@ -551,6 +564,10 @@ components:
RunRequest:
title: RunRequest
type: object
required:
- workflow_type
- workflow_type_version
- workflow_url
properties:
workflow_params:
type: object
Expand Down Expand Up @@ -578,6 +595,16 @@ components:
type: object
additionalProperties:
type: string
workflow_engine:
type: string
description: >-
The workflow engine, must be one supported by this WES instance. Required if workflow_engine_version is provided.
workflow_engine_version:
type: string
description: >-
The workflow engine version, must be one supported by this WES instance.
If workflow_engine is provided, but workflow_engine_version is not, servers can make no assumptions with regard to the engine version the WES instance uses to process the request if
that WES instance supports multiple versions of the requested engine.
workflow_url:
type: string
description: >-
Expand All @@ -588,6 +615,10 @@ components:
To execute a workflow, send a run request including all the details needed to begin downloading
and executing a given workflow.
If workflow_engine and workflow_engine_version are not provided, servers can use the most recent workflow_engine_version of workflow_engine that WES instance uses to process the request if
supports for the requested workflow_type.
RunLog:
title: RunLog
type: object
Expand Down Expand Up @@ -662,6 +693,16 @@ components:
type: string
description: an array of one or more acceptable types for the `workflow_type`
description: Available workflow types supported by a given instance of the service.
WorkflowEngineVersion:
title: WorkflowEngineVersion
type: object
properties:
workflow_engine_version:
type: array
items:
type: string
description: An array of one or more acceptable engines versions for the `workflow_engine`
description: Available workflow engine versions supported by a given instance of the service.
RunListResponse:
title: RunListResponse
type: object
Expand Down

0 comments on commit cc46bc6

Please sign in to comment.