We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e8721 commit 15b7004Copy full SHA for 15b7004
cwl_runner_wes.py
@@ -1,3 +1,7 @@
1
+import connexion
2
+from connexion.resolver import Resolver
3
+import connexion.utils as utils
4
+
5
import threading
6
import tempfile
7
import subprocess
@@ -84,3 +88,15 @@ def RunWorkflow(body):
84
88
job.start()
85
89
jobs.append(job)
86
90
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
0 commit comments