feat(worker): add configurable debug logging

This commit is contained in:
2026-06-21 02:04:19 +03:30
parent 7a2c26a4e6
commit 201196ffb0
10 changed files with 122 additions and 7 deletions

View File

@@ -47,6 +47,19 @@ Create an admin user:
docker compose exec backend python manage.py createsuperuser
```
Worker logs default to `INFO`. To see every poll, claim, lease renewal, progress update, retry, and completion, set:
```env
JOB_WORKER_LOG_LEVEL=DEBUG
```
Then recreate the worker:
```powershell
docker compose up -d --build worker
docker compose logs -f worker
```
## Architecture
```text