fix: use arq CLI to start worker instead of python -m

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-08 12:33:02 +00:00
parent 6aa8a676ec
commit 6ab5f805a4
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
import logging import logging
from urllib.parse import urlparse from urllib.parse import urlparse
from arq import cron
from arq.connections import RedisSettings from arq.connections import RedisSettings
from app.config import settings from app.config import settings

View File

@ -56,7 +56,7 @@ services:
context: ./backend context: ./backend
dockerfile: Dockerfile dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
command: ["python", "-m", "app.worker"] command: ["arq", "app.worker.WorkerSettings"]
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://clipforge:changeme_clipforge_2025@postgres:5432/clipforge} - DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://clipforge:changeme_clipforge_2025@postgres:5432/clipforge}