@@ -12,10 +12,10 @@ podman-compose up --build
1212
1313Add ` -d ` for the service to run in the background.
1414
15- In order to quickly experiment without using Celery use this :
15+ For quick development without container setup :
1616
1717``` bash
18- USE_CELERY=false CLONE_DIR_PATH=/var/tmp/test uvicorn tmt_web.api:app --reload --host 0.0.0.0 --port 8000
18+ CLONE_DIR_PATH=/var/tmp/test uvicorn tmt_web.api:app --reload --host 0.0.0.0 --port 8000
1919```
2020
2121## Tests
@@ -29,15 +29,19 @@ Run `hatch env show` to see the list of available environments and their scripts
2929
3030## Environment variables
3131
32- - ` REDIS_URL ` - * optional* , passed to Celery on initialization as a ` broker ` and
33- ` backend ` argument, default value is: ` redis ://localhost:6379`
32+ - ` VALKEY_URL ` - * optional* , connection URL for Valkey which is used for storing task state,
33+ default value is: ` valkey ://localhost:6379`
3434- ` CLONE_DIR_PATH ` - * optional* , specifies the path where the repositories will
3535 be cloned, default value is: ` ./.repos/ `
36- - ` USE_CELERY ` - * optional* , specifies if the app should use Celery, set to
37- ` false ` for running without Celery
3836- ` API_HOSTNAME ` - * required* , specifies the hostname of the API, used for
3937 creating the callback URL to the service
4038
39+ ## Architecture
40+
41+ The application uses FastAPI's built-in background tasks for asynchronous processing and
42+ Valkey for task state storage. This architecture provides a lightweight and efficient
43+ solution for handling long-running tasks without requiring external task queue infrastructure.
44+
4145## API
4246
4347The API version is defined by prefix in url, e.g. ` /v0.1/status ` .
@@ -50,7 +54,7 @@ exclusive.
5054
5155### ` / `
5256
53- Returns ID of the created Celery task with additional metadata in JSON
57+ Returns ID of the created background task with additional metadata in JSON
5458and callback url for ` /status ` endpoint, returns the same in HTML format
5559if ` format ` is set to ` html ` .
5660
0 commit comments