blitz_api/app/api
fusion44 4e038e8fc7 feat: fetch app status via a celery task
This is a feature that allows to fetch the app status via a celery
task which stores the result in the Redis database and notifies the API
of the change. The API sends a notification to connected clients via the
SSE mechanism.

Using a background task allows to avoid crashing the whole API if the
script call fails.

The by default the cache is refreshed every 30 minutes. This can be
changed by setting the `BAPI_APP_STATUS_UPDATE_INTERVAL_MIN` environment
variable.

refs #123
2025-05-06 09:16:46 +02:00
..
error_report feat: replace call_script func with better func 2025-05-06 09:16:46 +02:00
__init__.py refactor: switch to domain driven directory layout 2022-10-03 20:22:00 +02:00
channel.py feat: fetch app status via a celery task 2025-05-06 09:16:46 +02:00
config.py chore: run ruff format and isort 2025-05-06 09:16:46 +02:00
constants.py feat: prepare for release 0.5.1beta 2023-02-05 21:24:31 +01:00
models.py feat: fetch app status via a celery task 2025-05-06 09:16:46 +02:00
sse_manager.py refactor: switch to domain driven directory layout 2022-10-03 20:22:00 +02:00
utils.py feat: fetch app status via a celery task 2025-05-06 09:16:46 +02:00
warmup.py feat: fetch app status via a celery task 2025-05-06 09:16:46 +02:00