Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal NLP web server launcher #77

Open
RudolfCardinal opened this issue Mar 31, 2022 · 3 comments
Open

Internal NLP web server launcher #77

RudolfCardinal opened this issue Mar 31, 2022 · 3 comments

Comments

@RudolfCardinal
Copy link
Collaborator

I'm a bit unconvinced that the launchers are all working properly for the "proper" NLPRP server (not the toy one). If the NLP web config file is in $CRATE_NLP_WEB_CONFIG, then:

crate_nlp_webserver_pserve "${CRATE_NLP_WEB_CONFIG}"

which is the pserve (Pyramid) launcher (which then, in my test config, launches Gunicorn), reads the port correctly from the config file but doesn't appear to read the processor list.

After some fixing (in the nlp_docs) branch,

crate_nlp_webserver_launch_gunicorn \
    --crate_config "${CRATE_NLP_WEB_CONFIG}" \
    --bind localhost:6543

works (you have to specify the port this way as it ignores the config file settings) but doesn't appear to read the processor file correctly;

crate_nlp_webserver_launch_celery

seems to launch some sort of worker process by default (which doesn't do much by itself?) but I'm not sure if that was the intent.

In progress.

@RudolfCardinal
Copy link
Collaborator Author

ah, the Celery one is deliberately back-end; I failed to read the help. So just the processor detection, then, and maybe the Gunicorn port thing (or documentation around that).

@martinburchell
Copy link
Collaborator

@RudolfCardinal Is this fixed by #74?

@RudolfCardinal
Copy link
Collaborator Author

don't think so! Residual...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants