server: add healthcheck for worker

This commit is contained in:
2023-11-30 19:43:19 +01:00
parent 8b1b71940f
commit f9771427e2
5 changed files with 49 additions and 3 deletions

View File

@@ -133,17 +133,25 @@ TRANSLATE_URL=https://monadical-sas--reflector-translator-web.modal.run
ZEPHYR_LLM_URL=https://monadical-sas--reflector-llm-zephyr-web.modal.run
```
### Start the project
### Start the API/Backend
Use:
Start the API server:
```bash
poetry run python3 -m reflector.app
```
And start the background worker
Start the background worker:
```bash
celery -A reflector.worker.app worker --loglevel=info
```
For crontab (only healthcheck for now), start the celery beat:
```bash
celery -A reflector.worker.app beat
```
#### Using docker