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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user