refactor: use custom worker script instead of standard RQ CLI

- Add scripts/rq-docker for Docker container compatibility
- Update Dockerfile to copy scripts directory
- Replace standard rq worker command with custom worker script
- Custom worker includes built-in scheduling via _drain_ready_scheduled_tasks

Co-authored-by: abhi1693 <5083532+abhi1693@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-02 14:57:00 +00:00
parent e6217b3ff5
commit 35b3829da0
3 changed files with 51 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ services:
build:
context: .
dockerfile: backend/Dockerfile
command: ["rq", "worker", "--with-scheduler", "-u", "redis://redis:6379/0"]
command: ["python", "scripts/rq-docker", "worker"]
env_file:
- ./backend/.env
depends_on: