cedadev / swallow

Swallow - a Birdhouse WPS for running the NAME Trajectory code.
Other
0 stars 1 forks source link

Docs: running the Phoenix UI with nginx and a local swallow WPS with Slurm at the same time #46

Open agstephens opened 2 years ago

agstephens commented 2 years ago
. ./setup-env.sh swallow

diff --git a/swallow/cli.py b/swallow/cli.py
index 7f82973..7b8785f 100644
--- a/swallow/cli.py
+++ b/swallow/cli.py
@@ -25,7 +25,7 @@ template_env = Environment(

 def write_user_config(**kwargs):
-    config_templ = template_env.get_template('pywps.cfg')
+    config_templ = template_env.get_template('pywps-scheduler.cfg')

and

 diff /usr/local/Miniconda3-py39_4.9.2-Linux-x86_64/envs/swallow/lib/python3.9/site-packages/pywps/app/Process*.py
196a197,198
> #        async_ = False
>
212,213c214,215
<                 if stored >= maxprocesses and maxprocesses != -1:
<                     raise ServerBusy('Maximum number of processes in queue reached. Please try later.')
---
> #                if stored >= maxprocesses and maxprocesses != -1:
> #                    raise ServerBusy('Maximum number of processes in queue reached. Please try later.')
220,221c222,223
<             if running >= maxparallel and maxparallel != -1:
<                 raise ServerBusy('Maximum number of parallel running processes reached. Please try later.')
---
>             #if running >= maxparallel and maxparallel != -1:
>             #    raise ServerBusy('Maximum number of parallel running processes reached. Please try later.')

Restart:

swallow stop
swallow start -d --outputurl=https://ceda-wps-staging.ceda.ac.uk/outputs --outputpath=/gws/nopw/j04/ceda_wps/birds/test/swallow/outputs/swallow

It works, but the UI doesn't follow the output yet.