fix(ops): add missing env_file to celery-beat and quiet Stripe log spam
Some checks failed
CI / pytest (push) Has been cancelled
CI / ruff (push) Successful in 11s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled

celery-beat was missing env_file and DATABASE_URL, so it had no access
to app config (Stripe keys, etc.). Also downgrade "Stripe API key not
configured" from warning to debug to stop log spam when Stripe is not
yet set up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 22:33:54 +01:00
parent f631283286
commit 6dec1e3ca6
2 changed files with 5 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class StripeService:
stripe.api_key = settings.stripe_secret_key
self._configured = True
else:
logger.warning("Stripe API key not configured")
logger.debug("Stripe API key not configured")
@property
def is_configured(self) -> bool:

View File

@@ -102,9 +102,13 @@ services:
profiles:
- full # Only start with: docker compose --profile full up -d
command: celery -A app.core.celery_config beat --loglevel=info
env_file: .env
environment:
DATABASE_URL: postgresql://orion_user:secure_password@db:5432/orion_db
REDIS_URL: redis://redis:6379/0
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
mem_limit: 128m