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

@@ -42,6 +42,10 @@ COPY backend/app ./app
# In-repo these live at `backend/templates/`; runtime path is `/app/templates`.
COPY backend/templates ./templates
# Copy worker scripts.
# In-repo these live at `scripts/`; runtime path is `/app/scripts`.
COPY scripts ./scripts
# Default API port
EXPOSE 8000