Browse Source

🐛 Set up Sentry only when used (#671)

pull/13907/head
Sebastián Ramírez 1 year ago
committed by GitHub
parent
commit
6851eea1fe
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      backend/app/worker.py

3
backend/app/worker.py

@ -3,7 +3,8 @@ import sentry_sdk
from app.core.celery_app import celery_app from app.core.celery_app import celery_app
from app.core.config import settings from app.core.config import settings
sentry_sdk.init(dsn=str(settings.SENTRY_DSN)) if settings.SENTRY_DSN:
sentry_sdk.init(dsn=str(settings.SENTRY_DSN))
@celery_app.task(acks_late=True) @celery_app.task(acks_late=True)

Loading…
Cancel
Save