Skip to content

Commit 15b7004

Browse files
author
Peter Amstutz
committed
Merge server / myapp -> cwl_runner_wes
1 parent c5e8721 commit 15b7004

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

cwl_runner_wes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import connexion
2+
from connexion.resolver import Resolver
3+
import connexion.utils as utils
4+
15
import threading
26
import tempfile
37
import subprocess
@@ -84,3 +88,15 @@ def RunWorkflow(body):
8488
job.start()
8589
jobs.append(job)
8690
return {"workflow_ID": str(jobid)}
91+
92+
def main():
93+
app = connexion.App(__name__, specification_dir='swagger/')
94+
def rs(x):
95+
return utils.get_function_from_name("cwl_runner_wes." + x)
96+
97+
app.add_api('proto/workflow_execution.swagger.json', resolver=Resolver(rs))
98+
99+
app.run(port=8080)
100+
101+
if __name__ == "__main__":
102+
main()

server.py

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

0 commit comments

Comments
 (0)