feat: add CELERY_TASK_DEFAULT_QUEUE environment variable for task isolation

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-02-02 13:17:12 -08:00
parent a385f2b637
commit 4df40f8cea
9 changed files with 33 additions and 6 deletions

View file

@ -21,8 +21,11 @@ from sqlalchemy.ext.asyncio import AsyncSession
from app.db import Podcast, PodcastStatus
# Redis connection for tracking active podcast tasks
# Uses the same Redis instance as Celery
REDIS_URL = os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0")
# Defaults to the Celery broker when REDIS_APP_URL is not set
REDIS_URL = os.getenv(
"REDIS_APP_URL",
os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0"),
)
_redis_client: redis.Redis | None = None