diff options
author | Frederick Muriuki Muriithi | 2022-03-03 10:10:12 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-03-03 10:20:04 +0300 |
commit | 84fcbdbafdf58d0f1963c69bad5b6bcb9c805ce1 (patch) | |
tree | d5f453322b281466cbb0cbede7d6f6b3d4761452 /gn3/app.py | |
parent | 7de9fea87dc2c9bcb242fd7ffda11af63dbf4268 (diff) | |
download | genenetwork3-84fcbdbafdf58d0f1963c69bad5b6bcb9c805ce1.tar.gz |
Add endpoint for checking state of external processes
Long-running computations are handed off to external processes. This avoids
timeouts in the webserver, and also reduces chances of instability of the
webserver.
The results of these long-running computations are needed eventually, so this
commit provides a way to check for the state of the computation, and the
results if any.
Diffstat (limited to 'gn3/app.py')
-rw-r--r-- | gn3/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -15,6 +15,7 @@ from gn3.api.correlation import correlation from gn3.api.data_entry import data_entry from gn3.api.wgcna import wgcna from gn3.api.ctl import ctl +from gn3.api.async_commands import async_commands def create_app(config: Union[Dict, str, None] = None) -> Flask: """Create a new flask object""" @@ -47,4 +48,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask: app.register_blueprint(data_entry, url_prefix="/api/dataentry") app.register_blueprint(wgcna, url_prefix="/api/wgcna") app.register_blueprint(ctl, url_prefix="/api/ctl") + app.register_blueprint(async_commands, url_prefix="/api/async_commands") return app |