Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations

This commit is contained in:
2025-06-28 10:25:33 +05:00
parent 28315c59cf
commit e3b39478eb
8 changed files with 37 additions and 66 deletions

View File

@ -47,8 +47,7 @@ curl -X POST http://localhost:4000/api/auth/login/ \
```
expected response: `{"message":"Unable to log in with provided credentials."}`
5. For Celery to work run the worker and the beat
5. For procrastinate (postgres background tasks) to work run the worker
```
celery -A apibase worker --loglevel=info
celery -A apibase beat --loglevel=info
python manage.py procrastinate worker
```