Skip to content

Commit c3b1985

Browse files
authored
Merge pull request #152 from ga4gh/reorganize-spec-content
explode out openapi spec to use multifile organization
2 parents 950e88b + 33253aa commit c3b1985

20 files changed

+683
-611
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: DefaultWorkflowEngineParameter
2+
type: object
3+
properties:
4+
name:
5+
type: string
6+
description: The name of the parameter
7+
type:
8+
type: string
9+
description: Describes the type of the parameter, e.g. float.
10+
default_value:
11+
type: string
12+
description: The stringified version of the default parameter. e.g. "2.45".
13+
description: A message that allows one to describe default parameters for a workflow engine.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: ErrorResponse
2+
type: object
3+
properties:
4+
msg:
5+
type: string
6+
description: A detailed error message.
7+
status_code:
8+
type: integer
9+
description: The integer representing the HTTP status code (e.g. 200, 404).
10+
format: int32
11+
description: An object that can optionally include information about the error.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
title: Log
2+
type: object
3+
properties:
4+
name:
5+
type: string
6+
description: The task or workflow name
7+
cmd:
8+
type: array
9+
items:
10+
type: string
11+
description: The command line that was executed
12+
start_time:
13+
type: string
14+
description: When the command started executing, in ISO 8601 format "%Y-%m-%dT%H:%M:%SZ"
15+
end_time:
16+
type: string
17+
description: When the command stopped executing (completed, failed, or cancelled), in ISO 8601 format "%Y-%m-%dT%H:%M:%SZ"
18+
stdout:
19+
type: string
20+
description: A URL to retrieve standard output logs of the workflow run or task. This URL may change between status requests, or may not be available until the task or workflow has finished execution. Should be available using the same credentials used to access the WES endpoint.
21+
stderr:
22+
type: string
23+
description: A URL to retrieve standard error logs of the workflow run or task. This URL may change between status requests, or may not be available until the task or workflow has finished execution. Should be available using the same credentials used to access the WES endpoint.
24+
exit_code:
25+
type: integer
26+
description: Exit code of the program
27+
format: int32
28+
description: Log and other info
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: RunId
2+
type: object
3+
properties:
4+
run_id:
5+
type: string
6+
description: workflow run ID
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title: RunListResponse
2+
type: object
3+
properties:
4+
runs:
5+
type: array
6+
items:
7+
$ref: './RunStatus.yaml'
8+
description: A list of workflow runs that the service has executed or is executing. The list is filtered to only include runs that the caller has permission to see.
9+
next_page_token:
10+
type: string
11+
description: A token which may be supplied as `page_token` in workflow run list request to get the next page of results. An empty string indicates there are no more items to return.
12+
description: The service will return a RunListResponse when receiving a successful RunListRequest.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
title: RunLog
2+
type: object
3+
properties:
4+
run_id:
5+
type: string
6+
description: workflow run ID
7+
request:
8+
$ref: './RunRequest.yaml'
9+
state:
10+
$ref: './State.yaml'
11+
run_log:
12+
$ref: './Log.yaml'
13+
task_logs:
14+
type: array
15+
items:
16+
$ref: './Log.yaml'
17+
description: The logs, and other key info like timing and exit code, for each step in the workflow run.
18+
outputs:
19+
type: object
20+
description: The outputs from the workflow run.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
title: RunRequest
2+
type: object
3+
properties:
4+
workflow_params:
5+
type: object
6+
description: >-
7+
REQUIRED
8+
9+
The workflow run parameterizations (JSON encoded), including input and output file locations
10+
workflow_type:
11+
type: string
12+
description: >-
13+
REQUIRED
14+
15+
The workflow descriptor type, must be "CWL" or "WDL" currently (or another alternative supported by this WES instance)
16+
workflow_type_version:
17+
type: string
18+
description: >-
19+
REQUIRED
20+
21+
The workflow descriptor type version, must be one supported by this WES instance
22+
tags:
23+
type: object
24+
additionalProperties:
25+
type: string
26+
workflow_engine_parameters:
27+
type: object
28+
additionalProperties:
29+
type: string
30+
workflow_url:
31+
type: string
32+
description: >-
33+
REQUIRED
34+
35+
The workflow CWL or WDL document. When `workflow_attachments` is used to attach files, the `workflow_url` may be a relative path to one of the attachments.
36+
description: >-
37+
To execute a workflow, send a run request including all the details needed to begin downloading
38+
39+
and executing a given workflow.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: RunStatus
2+
required:
3+
- run_id
4+
type: object
5+
properties:
6+
run_id:
7+
type: string
8+
state:
9+
$ref: './State.yaml'
10+
description: Small description of a workflow run, returned by server during listing
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
title: ServiceInfo
2+
allOf:
3+
- $ref: 'https://raw.githubusercontent.com/ga4gh-discovery/ga4gh-service-info/v1.0.0/service-info.yaml#/components/schemas/Service'
4+
- type: object
5+
properties:
6+
workflow_type_versions:
7+
type: object
8+
additionalProperties:
9+
$ref: './WorkflowTypeVersion.yaml'
10+
supported_wes_versions:
11+
type: array
12+
items:
13+
type: string
14+
description: The version(s) of the WES schema supported by this service
15+
supported_filesystem_protocols:
16+
type: array
17+
items:
18+
type: string
19+
description: The filesystem protocols supported by this service, currently these may include common protocols using the terms 'http', 'https', 'sftp', 's3', 'gs', 'file', or 'synapse', but others are possible and the terms beyond these core protocols are currently not fixed. This section reports those protocols (either common or not) supported by this WES service.
20+
workflow_engine_versions:
21+
type: object
22+
additionalProperties:
23+
type: string
24+
default_workflow_engine_parameters:
25+
type: array
26+
items:
27+
$ref: './DefaultWorkflowEngineParameter.yaml'
28+
description: Each workflow engine can present additional parameters that can be sent to the workflow engine. This message will list the default values, and their types for each workflow engine.
29+
system_state_counts:
30+
type: object
31+
additionalProperties:
32+
type: integer
33+
format: int64
34+
auth_instructions_url:
35+
type: string
36+
description: A web page URL with human-readable instructions on how to get an authorization token for use with a specific WES endpoint.
37+
tags:
38+
type: object
39+
additionalProperties:
40+
type: string
41+
description: A message containing useful information about the running service, including supported versions and default settings.
42+
required:
43+
- workflow_type_versions
44+
- supported_wes_versions
45+
- supported_filesystem_protocols
46+
- workflow_engine_versions
47+
- default_workflow_engine_parameters
48+
- system_state_counts
49+
- auth_instructions_url
50+
- tags
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
title: State
2+
enum:
3+
- UNKNOWN
4+
- QUEUED
5+
- INITIALIZING
6+
- RUNNING
7+
- PAUSED
8+
- COMPLETE
9+
- EXECUTOR_ERROR
10+
- SYSTEM_ERROR
11+
- CANCELED
12+
- CANCELING
13+
type: string
14+
description: >
15+
State can take any of the following values:
16+
17+
+ UNKNOWN: The state of the task is unknown. This provides a safe default for messages where this field is missing, for example, so that a missing field does not accidentally imply that the state is QUEUED.
18+
19+
+ QUEUED: The task is queued.
20+
21+
+ INITIALIZING: The task has been assigned to a worker and is currently preparing to run. For example, the worker may be turning on, downloading input files, etc.
22+
23+
+ RUNNING: The task is running. Input files are downloaded and the first Executor has been started.
24+
25+
+ PAUSED: The task is paused. An implementation may have the ability to pause a task, but this is not required.
26+
27+
+ COMPLETE: The task has completed running. Executors have exited without error
28+
and output files have been successfully uploaded.
29+
30+
+ EXECUTOR_ERROR: The task encountered an error in one of the Executor processes. Generally,
31+
this means that an Executor exited with a non-zero exit code.
32+
33+
+ SYSTEM_ERROR: The task was stopped due to a system error, but not from an Executor,
34+
for example an upload failed due to network issues, the worker's ran out of disk space, etc.
35+
36+
+ CANCELED: The task was canceled by the user.
37+
38+
+ CANCELING: The task was canceled by the user, and is in the process of stopping.

0 commit comments

Comments
 (0)