Skip to content

Commit ed75de8

Browse files
author
Peter Amstutz
committed
For demo
1 parent c99342e commit ed75de8

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

client.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

cwl_runner_wes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ def run(self, path, inputobj):
2727
output = open(os.path.join(self.workdir, "cwl.output.json"), "w")
2828
stderr = open(os.path.join(self.workdir, "stderr"), "w")
2929

30-
#proc = subprocess.Popen(["cwl-runner", path, inputtemp.name],
31-
proc = subprocess.Popen(["cwltool", path, inputtemp.name],
30+
proc = subprocess.Popen(["cwl-runner", path, inputtemp.name],
3231
stdout=output,
3332
stderr=stderr,
3433
close_fds=True,
@@ -73,7 +72,7 @@ def getstatus(self):
7372
with open(os.path.join(self.workdir, "workflow_url"), "r") as f:
7473
workflow_url = f.read()
7574

76-
outputobj = None
75+
outputobj = {}
7776
if state == "Complete":
7877
with open(os.path.join(self.workdir, "cwl.output.json"), "r") as outputtemp:
7978
outputobj = json.load(outputtemp)
@@ -96,7 +95,7 @@ def getlog(self):
9695
return {
9796
"workflow_ID": self.workflow_ID,
9897
"log": {
99-
"cmd": "",
98+
"cmd": [""],
10099
"startTime": "",
101100
"endTime": "",
102101
"stdout": "",

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import setup, find_packages
99

1010
SETUP_DIR = os.path.dirname(__file__)
11-
README = os.path.join(SETUP_DIR, 'README')
11+
README = os.path.join(SETUP_DIR, 'README.md')
1212

1313
setup(name='cwltool_service',
1414
version='2.0',
@@ -19,7 +19,7 @@
1919
url="https://github.com/common-workflow-language/cwltool-service",
2020
download_url="https://github.com/common-workflow-language/cwltool-service",
2121
license='Apache 2.0',
22-
py_modules=["cwltool_stream", "cwl_flask", "cwltool_client"],
22+
py_modules=["cwl_runner_wes"],
2323
install_requires=[
2424
'connexion',
2525
'bravado'

swagger/proto/workflow_execution.swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"type": "object",
169169
"properties": {
170170
"workflow_ID": {
171-
"$ref": "#/definitions/ga4gh_workflow_execWorkflowRunID"
171+
"type": "string"
172172
},
173173
"log": {
174174
"$ref": "#/definitions/ga4gh_task_execJobLog"

0 commit comments

Comments
 (0)