This package abstracts and centralize all Bothub NLP Celery app features.
Usually this package is used as dependency in:
- bothub-nlp (worker nodes)
- bothub-nlp-api
Variable | Type | Default | Description |
---|---|---|---|
ENVIRONMENT | string |
production |
|
BOTHUB_NLP_CELERY_BROKER_URL | string |
redis://localhost:6379/0 |
Celery Broker URL, check usage instructions in Celery Docs |
BOTHUB_NLP_CELERY_BACKEND_URL | string |
BOTHUB_NLP_CELERY_BROKER_URL value |
Celery Backend URL, check usage instructions in Celery Docs |
BOTHUB_NLP_CELERY_SENTRY_CLIENT | boolean |
False |
Enable Sentry |
BOTHUB_NLP_CELERY_SENTRY | str |
None |
Set URL Sentry Server |
Variable | Type | Default | Description |
---|---|---|---|
AIPLATFORM_LANGUAGE_QUEUE | string |
None |
Language prefix |
AIPLATFORM_LANGUAGE_MODEL | string |
None |
Model type |
Variables that will be used by the worker nodes
Variable | Type | Default | Description |
---|---|---|---|
BOTHUB_NLP_LANGUAGE_QUEUE | string |
en |
Set language of model that will be loaded in celery and will define its queue |
BOTHUB_LANGUAGE_MODEL | string |
None |
Set type of model |
TASK_GENERAL_TIME_LIMIT | int |
120 |
Time limit of celery tasks |
TASK_PARSE_TIME_LIMIT | int |
10 |
Time limit of parse task |
Variables that will be used by both the worker and the application that send the tasks
Variable | Type | Default | Description |
---|---|---|---|
AVAILABLE_SPACY_MODELS | string |
en|pt_br|es|fr|ru |
Available SPACY models of working nodes |
AVAILABLE_BERT_MODELS | string |
en|pt_br|xx |
Available BERT models of working nodes |
AVAILABLE_QA_MODELS | string |
en|pt_br|xx |
Available QA models of working nodes |
AVAILABLE_SPECIFIC_SPACY_QUEUES | string |
en|pt_br|es|fr|ru |
Available languages with word2vec models |
AVAILABLE_SPECIFIC_BERT_QUEUES | string |
en|pt_br |
Available languages with BERT models |
AVAILABLE_SPECIFIC_QA_QUEUES | string |
en|pt_br |
Available languages with QA models |
AVAILABLE_SPECIFIC_QUEUES | string |
"" |
Languages without model that need to be handled in exclusive queues |