Only use RQ 2.4+ and its cron capabilities.

This commit is contained in:
Antoine Nguyen
2026-01-06 15:30:53 +01:00
parent 4d60258298
commit c147eb80e4
7 changed files with 68 additions and 84 deletions
+16 -1
View File
@@ -38,7 +38,22 @@ services:
PYTHONPATH: ".."
PYTHONUNBUFFERED: 1
command: >
sh -c "cd test_project; python3 manage.py rqworker dkim modoboa"
sh -c "cd test_project; python3 manage.py rqworker dkim modoboa dovecot"
volumes:
- .:/code
rq-scheduler:
build:
context: .
dockerfile: docker/Dockerfile.dev
environment:
DB: "SQLITE"
DEBUG: 1
REDIS_HOST: redis
PYTHONPATH: ".."
PYTHONUNBUFFERED: 1
command: >
sh -c "cd test_project; python3 manage.py rqcron test_project/cron_config.py"
volumes:
- .:/code